C++ and implicit constructors

Nope, Dave, C++ calls Super() in the following code:

class Super{        public:                Super() { cout << "super" << endl; }};

class Sub : public Super{        public:                Sub() { cout << "sub" << endl; }};

main(){    Sub sub;}
This entry was posted in tech. Bookmark the permalink.

Comments are closed.