Chapter 9, Exploring Multiple Inheritance
- Please see
Assessments/Chapter09/Chp9-Q1.cpp
in the GitHub repository.
a. There is one LifeForm
subobject.
b. The LifeForm
constructor and destructor are each invoked once.
c. The default constructor for LifeForm
would be invoked if the specification of an alternate constructor of LifeForm(1000)
was removed from the member initialization list of the Centaur
constructor.
- Please see the
Assessments/Chapter09/Chp9-Q2.cpp
in the GitHub repository.
a. There are two LifeForm
sub-objects.
b. The LifeForm
constructor and destructor are each invoked twice.