Solved

Suppose Class a Inherits from Base Class B

Question 9

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents