(C++) Public inheritance
February 24, 2017 · View on GitHub
(C++) Public inheritance
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 { };