摘要: 继承: 可以吧父类的方法直接拿过来用就行,不需要在重新写一遍方法。节省了代码量。 ➜ Test python class1.py this class A this class A 当然你也也可以重写 该方法 多态: 由此看来 子类的类型是基类的类型. 但是基类的类型不是子类的类型。 阅读全文
posted @ 2016-11-09 19:23 BiuBiuBiu666 阅读(403) 评论(0) 推荐(0) 编辑