会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
明月镇魂
博客园
首页
新随笔
联系
订阅
管理
2016年7月17日
对于父类的私有属性,子类是从哪里访问到的?
摘要: 其实也是牵扯到子类继承父类时,父类的private属性在子类中是什么样的问题。根据JAVA官方的定义:A subclass does not inherit the private members of its parent class. However, if th...
阅读全文
posted @ 2016-07-17 00:47 明月镇魂
阅读(553)
评论(0)
推荐(0)
公告