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().

From

Cover of Learning C++ by Creating Games with UE4

Note

继承就是子类将父类的所有特性全部拿到,然后重载一些,拓展一些