O'Reilly logo
  • LI WEI thinks this is interesting:

The point of inheritance is for the derived class to take on all the characteristics (data members, member functions) of the base class, and then to extend it with even more functionality. For instance, all mammals have a breathe() function. By inheriting from the Mammal class, the Dog, Cat, and Human classes all automatically gain the ability to breathe().


Cover of Learning C++ by Creating Games with UE4