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


a. C, B, then A

Computer Science & Information Technology

You might also like to view...

The members of a structure can be ____.

A. variables only B. procedures only C. variables or procedures D. neither variables nor procedures

Computer Science & Information Technology

In ________ orientation the page is wider than it is tall

Fill in the blank(s) with correct word

Computer Science & Information Technology

Every expression begins with the ________

A) exclamation mark (!) B) & symbol C) equal sign (=) D) asterisk (*)

Computer Science & Information Technology

In Java, all messages are called methods.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology