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

It is important to note the use of the class name and scope resolution operator (double colon) when declaring the member function bodies. We prefix all member functions belonging to the Mammal class with Mammal::.

From

Cover of Learning C++ by Creating Games with UE4

Note

将类的头文件和体文件分离,在体文件中包含头文件。记得在写方法和成员变量时使用::