|
||||
|
Section 19:
|
[19.3] How do you express inheritance in C++?
By the : public syntax:
class Car : public Vehicle {
public:
...
};
We state the above relationship in several ways:
(Note: this FAQ has to do with public inheritance; private and protected inheritance are different.) |
|||