Suppose class Child is derived from class Parent that was in turn derived from class GrandParent. When we destroy an object of class Child, three destructors are called: i) Child, ii) Parent, iii )GrandParent.. What is the order?

a) Child, Parent, GrandParent
b) Parent, GrandParent, Child
c) GrandParent, Child, Parent
d) GrandParent, Parent, Child
e) GrandParent, Child, Parent

a) Child, Parent, GrandParent

Computer Science & Information Technology

You might also like to view...

MC Schemas use__________ and are actually XML documents.

a) EBNF grammar. b) XML syntax. c) Both a and b. d) None of the above.

Computer Science & Information Technology

A string ________.

a) is only declared using the new keyword b) is immutable c) can dynamically resize d) is written as a series of characters surrounded by double quotation marks e) Both b and d.

Computer Science & Information Technology