Solved

When Composition (One Object Having Another Object as a Member)

Question 31

Multiple Choice

When composition (one object having another object as a member) is used:


A) The host object is constructed first and then the member objects are placed into it.
B) Member objects are constructed first, in the order they appear in the host constructor's initializer list.
C) Member objects are constructed first, in the order they are declared in the host's class.
D) Member objects are destructed last, in the order they are declared in the host's class.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions