理工类毕业论文—英文文献翻译—Java detailed analysis of abstract classes and interfaces distinction.doc
文本预览下载声明
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
显示全部