Question: Suppose class A inherits from base class B. What is the order in which their constructors and destructors will be called when an object
Suppose class A inherits from base class B. What is the order in which their constructors and destructors will be called when an object of class A is instantiated and then destroyed? Select one: O a. B constructor, A constructor, B destructor, A destructor O b. A constructor, B constructor, A destructor, B destructor O c. B constructor, A constructor, A destructor, B destructor. O d. A constructor, B constructor, B destructor, A destructor
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
Ans c B constructor A constructor A destructor B destructor will be called when ... View full answer
Get step-by-step solutions from verified subject matter experts
