面向对象(二)-----继承

单继承:子类只继承一个父类

 demo:

多继承:

方法的重写/覆盖

 

原文地址:https://www.cnblogs.com/ZS1314/p/13668153.html