抽象接口
摘要:门都有open( )和close( )两个动作,此时我们可以定义通过抽象类和接口来定义这个抽象概念: 1 2 3 4 abstract class Door { public abstract void open(); public abstract void close(); } 1 2 3 4
阅读全文
posted @ 2018-10-05 13:05
posted @ 2018-10-05 13:05
posted @ 2018-10-05 11:53
posted @ 2018-10-04 13:00
posted @ 2018-10-04 10:02
posted @ 2018-10-03 11:21
posted @ 2018-09-21 11:13