22智能在线
新记
java 中如何理解‘’包中非子类‘’?
如题所述
举报该文章
其他看法
第1个回答 推荐于2016-07-16
com.aaa.example.Pserson
com.aaa.example.Student
com.aaa.example.Classroom
student extends Person
classroom就是包中非子类
了解不
追问
person类student类Classroom类哪个是包中非子类
这三个类好像都是包种独立类,没有继承关系啊
追答
我不是说了吗?classroom就是包中非子类
本回答被提问者采纳
相似回答
大家正在搜
相关问题
JAVA子类和非子类,同一包和不同包,这都是什么概念
如何理解不同包中的子类,子类不都应该放在同一高包的吗。这里主...
java中访问控制protected是不同包中对子类可见,什...
java中protect即可访问范围是同一个包的类,加上其它...
java中保护的方法在同一包中的非子类可以访问吗?
java中不同包中的子类怎么调用父类中的
java中同包下的子类、父类、测试类啥关系
java中 父类不在包中 子类在包中 如何调用