面向對象的幾個原則

1. Every thing is an Object.it

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

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

4. Every object has a type.memory

5. All objects of a particular type can receive the same messages.message

相關文章
相關標籤/搜索