我测试了friendly可见性质。
my.Class1
my.sub.Class2两个类里面缺省access specifiers是不可以互相访问的。
说明my and my.sub is not the same package, but what is the relation between my and my.sub package? who can tell me ?
...全文
17011打赏收藏
奇怪!!基本问题my和my.sub算是几个package,my.sub算是my的子包么?
我测试了friendly可见性质。 my.Class1 my.sub.Class2两个类里面缺省access specifiers是不可以互相访问的。 说明my and my.sub is not the same package, but what is the relation between my and my.sub package? who can tell me ?