When a derived-class object is destroyed the destructors


Question: State whether each of the following is true or false. If false, explain why.

a) Base-class constructors are not inherited by derived classes.

b) A has-a relationship is implemented via inheritance.

c) A Car class has an is-a relationship with the Steering Wheel and Brakes classes.

d) Inheritance encourages the reuse of proven high-quality software.

e) When a derived-class object is destroyed, the destructors are called in the reverse order of the constructors.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: When a derived-class object is destroyed the destructors
Reference No:- TGS02405731

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)