Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Public inheritance is the most commonly used (of three) modes of inheritance. Public inheritance denotes a 'is-a-kind-of' relationship between derived class and base class. For example, a duck is a kind of animal.
struct Duck : public Animal //A derived class, public inheritance |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.