面向对象编程的特点(Object-oriented programming)

The following characteristics represent a pure approach to object-oriented programming:

1. Everything is an object.

2. A program is a bunch of objects telling each other what todo by sending messages.

3. Each object has its own memory made up of other objects.

4. Every object has a type.

5. All objects of a particular type can receive the samemessages.

posted @ 2010-12-16 16:15  Moupeng.Yang  阅读(272)  评论(0编辑  收藏  举报