Vidyalelo
C++ Programming · Q75

Inheritance in C++

Programming · C++ Programming · question 75

Q75

What is the order of Constructors call when the object of derived class B is declared, provided class B is derived from class A?

A.
Constructor of A followed by B
Answer
B.
Constructor of B followed by A
C.
Constructor of A only
D.
Constructor of B only

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board