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

面向对象的特点是:封装、继承、多态。

 

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

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

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

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.

 

你可能感兴趣的:(properties,function,character)