- 1、本文档共16页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
理工类毕业论文—英文文献翻译—Java detailed analysis of abstract classes and interfaces distinction
Java detailed analysis of abstract classes and interfaces distinction
In the Java language, the abstract class and the interface is to support the definition of the abstract category two mechanisms. It is precisely because the existence of these two mechanisms, it has given a powerful object-oriented Java capability. Abstract class and the interface between the abstract category in the definition of support is very similar, and even replace each other, many developers in the abstract definition of the abstract class, and the choice of interface is relatively arbitrary. In fact, between the two there is still great difference,even for their choice reflects the nature of the problem areas for understanding, the understanding of the design intent is correct and reasonable. In this paper, they will carry out the difference between a dissection, and attempt to provide developers with a choice between the two, basis.
Understand abstract class:
Abstract class and interface in the Java language are used for abstract classes (This article is not in the abstract category come from the abstract class translation, it said that the body is an abstract, and abstract class for the Java language is used to define the abstract category a method to distinguish the attention of readers) definition, then what is an abstract class, the use of an abstract class can bring us any good ? In the object-oriented concept, we know that all objects are described by type, but the contrary is not the case. Not all categories are used to describe the object, if a class does not contain enough information to describe a specific target, such a class is an abstract class. An abstract class is often used to our characterization of the problem areas in the analysis, design drawn abstraction is a series of looks different, but essentially the same concept of the abstract concrete. For example: If we have a graphics editing software development, we will find that there are areas of circular, triangula
文档评论(0)