1.继承的概念: 继承是类与类的一种关系,java中的继承都是单继承。 2.继承的好处 子类拥有父类 3.语法规则: class 子类 extends 父类{ ..... } 转载于:https://www.cnblogs.com/Dantewuxin/p/5702505.html