In this chapter you’ll:
Understand how inheritance promotes software reusability.
Create a derived class that inherits attributes and behaviors from a base class.
Override base-class methods in derived classes.
Use access modifier protected
to give derived-class methods access to base-class members.
Access base-class members with base
.
Understand how constructors are used in inheritance hierarchies.
See an overview of the methods of class object
, the direct or indirect base class of all classes.