摘要
接口和抽象类在使用上比较类似,但是对于其选择却又往往反映出对于问题领域中的概念本质的理解。首先对抽象类和接口的使用提出疑问,接着介绍了抽象类、接口的概念并进行理解说明和举例,最后对抽象类与接口的区别和联系进行比较和分析,对其使用的异同点进行总结,以便读者设计出更加高效、强大的了Java程序。
Interfaces and abstract class are similar in application,but their choices reflect the understanding of concept for the problem domain.Firstly,the questions are raised for the application of abstract class and interface.secondly, the conception of abstract class and interface are introduced, and also is understood and illustrated.Finally,the differences and connections between the abstract class and interface are compared and analyzed.Their similarities and differences are summarized so as to design the more efficient and powerful Java program for the readers.
出处
《电脑开发与应用》
2013年第6期58-60,共3页
Computer Development & Applications
关键词
JAVA
抽象
接口
Java language, abstract class, interface