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...
The term product life cycle is frequently used to describe patterns in the way consumers adopt technology products.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Express 15 gallons per hour in liters per minute (use 1 hour is 60 minutes, 1 gallon is 3.79 liters).
What will be an ideal response?
Computer Science & Information Technology