【继承】父类与子类的定义

已存在的类称为超类、基类、父类

新生成的类称为子类、派生类、孩子类

 

super.getSalary()  调用父类方法

猜你喜欢

转载自blog.csdn.net/hutuyaoniexi/article/details/81208637