Base and derived class having constructors - Inheritance
Q. In case of inheritance where both base and derived class are having constructors, when an object of derived class is created then___________ .- Published on 19 Jul 15a. constructor of derived class will be invoked first
b. constructor of base class will be invoked first
c. constructor of derived class will be executed first followed by base class
d. constructor of base class will be executed first followed by derived class
ANSWER: constructor of base class will be executed first followed by derived class