您的位置:首页 > 移动开发 > Objective-C

面向对象的特点 The character of Object-Oriented

2010-06-05 17:18 573 查看
面向对象的特点是:封装、继承、多态。



封装:将数据和函数封装到的一个单独的单元中称之为封装

继承:用来继承某个类的属性

多态:在不同的上下文中能给某个东西赋予不同的意义或用法



Encapsulation: Wrapping of data and member function in a single unit is known as encapsulation.

Inheritance: It is used to inherit the properties of other class. IS-A.

Polymorphism: It is the ability of being able to assign a different meaning or usage to something in different contexts.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: