super.name是调用父类中的name变量;
而super(name)是在子类中调用父类的构造方法
就是子类无法继承父类私有成员,但为什么可以使用get或者set去使用成员变量,子类对象为什么也会有?官网看到了这样一句话解释,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. 大概意思是子类不能继承父类的私有属性,但是如果子类中公有的方法影响到了父类私有属性,那么私有属性是能够被子类使用的。