Solved

Given a Class a That Derives from a Class B

Question 47

Multiple Choice

Given a class A that derives from a class B that derives from a class C, when an object of class A goes out of scope, in which order are the destructors called?


A) C, B, then A
B) A, B, then C
C) unable to determine
D) depends on how the code is written for the destructors

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