首页 | 本学科首页   官方微博 | 高级检索  
     

Java中的Abstract Class与Interface技术研究
引用本文:曹步清,金瓯. Java中的Abstract Class与Interface技术研究[J]. 微机发展, 2006, 16(8): 110-112
作者姓名:曹步清  金瓯
作者单位:中南大学信息科学与工程学院,中南大学信息科学与工程学院 湖南长沙410083,湖南科技大学计算机科学与工程学院,湖南湘潭411201,湖南长沙410083
摘    要:
Abstract class和Interface是Java语言中对于抽象类定义进行支持的两种机制,正是由于这两种机制的存在,才赋予了Java强大的面向对象能力。Abstract class和Interface之间在对于抽象类定义的支持方面具有很大的相似性,因此很多开发者在进行抽象类定义时对于Abstract class和Interface的选择显得比较随意。但是,两者之间的区别还是很大的。文中从两者的定义、程序编辑、设计意图3个方面加以了比较。由此,对于它们的选择,反映出对于问题领域本质的理解和对于设计意图的理解是否正确、合理。

关 键 词:抽象类  接口  面向对象
文章编号:1673-629X(2006)08-0110-03
修稿时间:2005-11-29

Research of Abstract Class and Interface of Java
CAO Bu-qing. Research of Abstract Class and Interface of Java[J]. Microcomputer Development, 2006, 16(8): 110-112
Authors:CAO Bu-qing
Affiliation:CAO Bu-qing~
Abstract:
Two mechanisms of abstract class and interface are supported for the abstract class definition of Java language.Being of two mechanisms endow the powerful ability of OO.There have great similarities that two mechanisms of abstractclass and interface are support for the abstractclass definition,therefore,the choice is random.But the distinction of the two is great.The distinction was made from the two definitions,procedures editorial,design intentation in this article.So,it is the key that how to choose them to make the designed-intention right and reasonable when the system is designed.
Keywords:abstract class  interface  OO
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号