面向对象的特点 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.
封装:将数据和函数封装到的一个单独的单元中称之为封装
继承:用来继承某个类的属性
多态:在不同的上下文中能给某个东西赋予不同的意义或用法
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.
相关文章推荐
- PHP面向对象之构造方法定义 | PHP object-oriented definition of the constructor
- Bob Tarr: Some Object-Oriented Design Principles(1): Minimize The Accessibility of Classes and Members
- The Essence of Object-Oriented Programming with Java and UML
- Management of the Object-Oriented Development Process
- Object-oriented of the three basic characteristics
- Management of the Object-oriented Development Process
- Zeev Suraski发表于2002年:The Object-Oriented Evolution of PHP
- URL-encoded form data is not valid ,Operation is not valid due to the current state of the object
- About the Height and Width property of DisplayObject
- The content of elements must consist of well-formed character data or markup
- Remove all the EventHandlers of the object by reflection (C#清空事件)
- The Object-Oriented Thought Process
- 奇怪的内存泄露 incorrect decrement of the reference count of an object that is not owned at this point by
- Please pay more attention to the character set of your database
- Object-Oriented JavaScript Part 2: How the prototype works
- inside the C++ object model chapter 3 the semantics of data
- Deserialization Problems ... The constructor to deserialize an object of type ... was not found
- UML for the IT Business Analyst: A Practical Guide to Object-Oriented Requirements Gathering
- C++ for Artists: The Art, Philosophy, and Science of Object-Oriented Programming
- Foundations of Object-Oriented Programming Using .NET 2.0 Patterns