教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 基础教育 >

赵帮辉中英文翻译(8)

来源:网络收集 时间:2026-07-24
导读: Introduction 1.3.2 OOP Object-oriented thinking on the use of an intuitive understanding of the real world, when the use of computerized depth of abstraction can be summarized briefly as follows: Sys

Introduction 1.3.2 OOP

Object-oriented thinking on the use of an intuitive understanding of the real world, when the use of computerized depth of abstraction can be summarized briefly as follows:

System is composed of things, there is a connection between things, the complexity is system;

System and the system, and things, things and things is a clear boundary between the (boundary) of;

System or the state of things can describe the property, said property is usually some simple data, if that is something the complex;

System or the state of things will change, called the behavior of a difference there is a reason (internal or external), changes in the process may be complex;

Will have different things in common between the properties and behavior, a common extreme case is completely contained.

Based on the above understanding, a runtime (dynamic) to the specific system or something, by several smaller things that constitute a specific (extreme things is a simple attribute data), which is constantly changing. If this concept of things an effective abstract, then the problem is solved.

First of all, any one specific thing called the object (Object), it is the extreme case of previous variables; things are classified, each class of things have the properties and behavior of uniform, that type - abstract data types, referred to as for the class (Class); behavior since it is the process, then a function of the abstract, named for the method to show the difference. For example:

Describe the height or name, each just a simple data variable;

Describe a student, you can use the student number, name, dorm, class, etc.; What kind of accommodation that replaced it!

It describes the dorm, class, and also has many projects.

1.4 Object-oriented programming concepts and features of the main

Object-oriented programming (Object Oriented Programming, OOP) language, in order to be more highly abstract, will introduce some of the real world, the concept is difficult to find, but for a programming language is indeed valuable. The following describes the concept of being basically derived from the abstract to the real world, from the role of program design to understand them.

Object-oriented programming to make the system easier to understand, but also make the code better reusability, scalability, easy management and maintenance. 1.4.1 Main Concepts 1, class

Class is the abstract of a class of things that the data type is equivalent to its role, of course, can be regarded as complex data types. Such as students, dormitories, class. 2, the object

Object represents a specific thing, its role is variable, that is, a complex data type - xx class variables. Such as Zhou Yu, Zhang Fei, Yu fly home, Tiger classes. 3 members

The elements of a thing to discuss when the class is virtual, it is the discussion of specific objects. As in class, a variable belonging to members - member variable, an object also belong to members - members of the object, a function also belong to the members - members of the method. 1.4.2 Main Features

There are three features of OOP languages: encapsulation, inheritance and polymorphism. 1 package

The composition includes members of the class variables / objects and members of the method, so the relevant data and functions will be packaged together with other distinguished class is package. Obviously, avoiding the process-oriented parallel language defects, indicating the class and members of their respective relationships. Further, members of the class can limit the visibility of the external, then the package will reflect the more perfect. 2, inheritance

When a thing is another thing entirely a special case of B, then, in general, the class A class B is more than the number of member variables / objects and members of the method, called class A inherits class B and class A is called ( Class B's) sub-class, class B is called (Class A) for the parent class.

Parent, also known as the base class, superclass, subclass, also known as derived class, derived class.

Obviously there is no need to write duplicate subclass the parent class to write some code in Part B, which is the most typical OOP code reuse. 3, multi-state

Polymorphism that an act of a class there are several implementation version. The simplest case is in a class, given a variety of different implementations, the complex is in many different sub-classes are given in their implementation. * 1.5 Java and C + + Differences 1.6 Chapter Summary Exercise

1. Java language to explain the three platforms.

2. Support the Java language to explain the three main technical goals (checking and data integrity.)

3. Object-oriented and process-oriented different from the problems and issues that both understand the point of view, in accordance with the individual's understanding and awareness of, for example, show the different places …… 此处隐藏:2867字,全部文档内容请下载后查看。喜欢就下载吧 ……

赵帮辉中英文翻译(8).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/564334.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)