protected field的用法和样例:
例句
- A protected field can be accessed by any method in the class in which it is declared or by any method defined in subclasses of that class.
声明该字段的类中的任何方法或者该类子类中定义的任何方法都可以访问受保护字段。 - A protected field can be accessed by any method in the class in which it is declared or by any method defined in subclasses of that class.
声明该字段的类中的任何方法或者该类子类中定义的任何方法都可以访问受保护字段。