Q:

Assume the output

0

Assume the output

using namespace std; class Base { public: Base1() { cout << " Base's constructor called" << endl; } }; class Derived: public Base { public: Derived() { cout << "Derived's constructor called" << endl; } }; int ma

  1. Derived\\\'s constructor called Base\\\'s constructor called
  2. Base\\\'s constructor called Derived\\\'s constructor called
  3. Derived\\\'s constructor called
  4. Base\\\'s constructor called

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Base's constructor called Derived's constructor called

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which of the not an inheritance?... >>
<< Which operator is overloaded for cout operation...