最后附上java官方文档的解释:
Private Members in a Superclass
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.
A nested class has access to all the private members of its enclosing class—both fields and methods. Therefore, a public or protected nested class inherited by a subclass has indirect access to all of the private members of the superclass.
这段话第一句就直接了当说明了子类不能继承父类的私有成员。
因此关于能不能继承,若还有疑问,请到java官网查找相关文档。