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

A protected variable is accessible inside the class, and inside of derived subclasses,

From

Cover of Learning C++ by Creating Games with UE4

Note

protected也能让自己的子类访问自己的变量