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.

a. B constructor, A constructor, A destructor, B destructor.

Computer Science & Information Technology

You might also like to view...

In a shared workbook, information that is maintained about changes made in past editing sessions is called the ________

A) change history B) save history C) review history D) track history

Computer Science & Information Technology

How can you remove items from the list of Recent files?

A) Drag the file off the Quick access list. B) Left-click the file and select Remove from Quick access. C) You cannot remove items from the list of Recent files. D) Right-click the file and select Remove from Quick access.

Computer Science & Information Technology