这个问题有依据,根据官方的定义是这样的:
A subclass does not inherit the private members of its parent class. However, if the superclass has public or protected methods for accessing its private fields, these can also be used by the subclass. (http://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html)
所以是,根据官方的定义,private 的属性是不被继承的
而如果从内存角度上来看,这些 private 的属性也是存在于内存中的,只是不可见
但是根据 java 官方的定义,不可见就是不被继承 |