Now, remove the keyword virtual from the base class list of Person and Horse (that is, LifeForm

Question:

Now, remove the keyword virtual from the base class list of Person and Horse (that is, LifeForm will no longer be a virtual base class of Person and Horse. LifeForm will just be a typical base class of Person and Horse.) Also, remove the LifeForm constructor selection from the member initialization list of the centaur constructors. Now, instantiate Centaur:

1. How many LifeForm subobjects exist for the instance of Centaur?

2. Now, how many times is the LifeForm constructor (and destructor) invoked?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer: