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 

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

1 Expert Approved Answer
Step: 1 Unlock

Ans c B constructor A constructor A destructor B destructor will be called when ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!