Solved

Suppose Class a Inherits from Base Class B

Question 8

Multiple Choice

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?


A) B constructor, A constructor, A destructor, B destructor.
B) B constructor, A constructor, B destructor, A destructor.
C) A constructor, B constructor, A destructor, B destructor.
D) A constructor, B constructor, B destructor, A destructor.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions