 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
We
specify in the derived class which class is to be its
|
|
|
|
parent.
It is this parent's members that are then inherited
|
|
|
|
by
the derived class.
|
|
|
| • |
Saying
class derived : public base establishes a single
|
|
|
|
inheritance
hierarchy.
|
|
|
| • |
The
keyword public specifies that all public members of
|
|
|
|
the
base class remain public in the derived class.
|
|
|
| • |
This
is called public derivation and is how we specify an
|
|
"is
a" relationship between two classes.
|
|