It has a protected modifier, so it's only available to derived subclasses and within the Lure class itself.
它具有一个受保护的修饰符,所以它只对派生子类可用并且在lure类本身的内部。
Theprotected keyword is a member access modifier. A protected member is accessible within its class and by derived class instances.
只有在通过派生类类型发生访问时,基类的受保护成员在派生类中才是可访问的。
Theprotected keyword is a member access modifier. A protected member is accessible within its class and by derived class instances.
只有在通过派生类类型发生访问时,基类的受保护成员在派生类中才是可访问的。
应用推荐