软硬件系统编程PPT (37).pdf
《软硬件系统编程PPT (37).pdf》由会员分享,可在线阅读,更多相关《软硬件系统编程PPT (37).pdf(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Object-oriented programming Overview Object Oriented Programming(OOP)is a computer programming architecture A basic principle of OOP is that a computer program is composed of a single unit or object that can function as a subprogram OOP achieves three main goals of software engineering:reusability,f
2、lexibility and scalability OOP=object+class+inheritance+polymorphism+message,the core concept is class and object Class and Object Object-oriented programming takes objects as the core,and the program consists of a series of objects Classes are abstractions of the real world,including data represent
3、ing static attributes and operations on data,and objects are instantiations of classes Objects communicate with each other through messaging to simulate the connection between different entities in the real world In object-oriented programming,objects are the basic modules that make up a program Exa
4、mple of class and object class class person name;/属性 age;ID;Walk()/行为 Eat()object P1 “Emily”29 1230099999 Walk()Eat()object P2 “John”19 1230098899 Walk()Eat()Features-Encapsulation Encapsulation refers to assembling together the data in a computer system and all operating languages related to this d
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 软硬件系统编程PPT 37 软硬件 系统 编程 PPT 37
限制150内