赵帮辉中英文翻译(8)
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字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [基础教育]2016-2022年中国钢芯铝绞线市场现状调
- [基础教育]语文部编版初一语文下册练习题 句式变
- [基础教育]南京继续教育参考答案--深入学习贯彻习
- [基础教育]国旗下讲话稿——珍惜时间好读书
- [基础教育]北师大版六年级数学下册圆锥的体积教学
- [基础教育]人教版-音乐-四年级下册-四年级下册音
- [基础教育]乔布斯2019年斯坦福大学毕业典礼致辞.d
- [基础教育]2015年加油站安全知识竞赛试题及答案
- [基础教育]2020年教师年度考核个人工作总结
- [基础教育]2019年中考历史试题-2019年大庆市初中
- [基础教育]初三仁爱英语第一轮总复习教案
- [基础教育]SG-A094电气配管安装工程隐蔽验收记录
- [基础教育]冀教版小学数学三年级下册第六单元教材
- [基础教育]青岛版(五制)小学科学二年级下册16《制
- [基础教育]2018-2019年初中科学初一中考真卷测试
- [基础教育]幼儿园大班期末简短评语精选
- [基础教育]2018云南临沧公务员考试申论技巧:这样
- [基础教育]学校食堂经营管理方案
- [基础教育]新中国砥砺奋进的七十年原文
- [基础教育]真空泵的选型及常用计算公式
- 高职田径课程教学现状与对策
- 全髋关节置换术在老年股骨颈骨折患者中
- 青人社厅函〔2016〕576号(附件)工资
- cp101-07砂子检验作业指导书 - secret
- 微观经济学 第八章 博弈论 习题
- 2014高考真题(词语运用)汇编及答案
- 2018年人教版七年级语文下册《第三单元
- 苏教版数学四年级上册第一单元试题 - M
- 四川大学新闻与传播考研2000-2010年真
- 浙江万里学院英语专业四年制本科教学计
- 最新2018马年事业祝福语-范文word版(2
- 最全模具行业术语英文翻译
- 皮亚杰的发展心理学理论
- 64篇高考情景式默写 练习题及答案
- 仿写(学生稿)
- 《SQL Server数据库技术》试卷A
- 第七章作业答案
- 江苏省赣榆县海头高级中学高中语文必修
- 浙江省2001年10月自考正常人体解剖学答
- 2012英语重点短语




