不幸的是,它同时也意味着该属性也能够被相同包下面的其他的类直接访问,这违反了标准的面向对象的使所有属性私有的原则。
Unfortunately this means the fields can be accessed directly by other classes in the same package, so you shouldn't use this in public API.
不幸的是,它同时也意味着该属性也能够被相同包下面的其他的类直接访问,这违反了标准的面向对象的使所有属性私有的原则。
Unfortunately this means the fields can be accessed directly by other classes in the same package, so you shouldn't use this in public API.
应用推荐