计算机英语翻译-oop的基本思想2(高分赠送)
来源:百度知道 编辑:UC知道 时间:2024/06/04 06:38:15
如下 请过目:
There are two basic methods for creating objects: prototype-based object creation and class-based object creation. Concept of prototype has been used in cognitive psychology to explain the increment trait in concept acquisition. Prototype model itself is aimed to create various new objects via providing a representative object and generates more objects in line with the actual application. And prototype-commissioned is abstract object in OOP, a type of code-sharing mechanism as well. A class provides common description for one or more objects. Seen from the form ,the class is related to class type. So a class is a set of applications derived from a set class.
Such views may bring some contradictions. Some typical examples are as this: In some succession system, compatibility between subset (sub-class) object and father-set (father-class) may be rather difficult to achieve. This is an often-quoted case-- subtype is not equivalent to subclass [Budd 2002]. And