阅读背景:

在Java中,为什么超类方法不能从子类实例访问受保护的或私有的方法/变量?

来源:互联网 

Let's start with another behavior: even if you declare a method/variable as private, another instance of the same class can access it. That's OK I can live with it. I call these class-private and not instance-private.Let's start with another behavior: even if you




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: