First page Back Continue Last page Graphics
Class Inheritance
Let's see a simple example!
- prata: TableTennisPlayer (0 and 1)
The : notation shows both class names
- Class derived_name : public base_name
- {
- };
public indicates “public derivation”
- public members of the base class become public members of the derived class.
- private members of the base class become part of the derived class. (accessible through public and protected methods of the base class.