In case of inheritance where both base and derived class are having constructors, when an object of derived class is created then___________ .
a. 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
Post a Comment