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

class APickupItem; // forward declare the APickupItem class, // since it will be "mentioned" in a member function decl below

From

Cover of Learning C++ by Creating Games with UE4

Note

前置声明,当下面的函数中会涉及到自己的类时,需要在最前面加前置声明