The protected modifier on a Field declaration within a public class means that the field ______________.

A. Cannot be modified
B. Can be read but not written from outside the class
C. Can be read and written from this class and its subclasses only within the same package
D. Can be read and written from this class and its subclasses defined in any package

题解

protected 修饰子可以使成员「能在同一个套件内自由访问,不同的套件需要有继承关系才能访问」。