面向抽象编程
摘要:abstract类中的abstract方法只允许声明,比允许实现,要实现抽象方法必须将abstract类的对象转变为abstract类的子类的上转型对象。 实例分析: 主类: 运行结果: circle's volume is 166.106rectanger's volume is 34.8
阅读全文
posted @ 2016-04-06 12:03
posted @ 2016-04-06 12:03
posted @ 2016-04-06 11:02
posted @ 2016-03-17 10:59