1.Everything is an object.
2.A program is a bunch of objects telling each other what to do 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 same messages.
one of the challenges of object-oriented programming is to create a one-to-one mapping between the elements in the problem space and objects in the solution space.
本文介绍了面向对象编程的基本概念,包括一切皆对象、程序是对象间通过消息传递来工作的原理、对象的状态由其他对象组成、每个对象都有特定类型,以及同一类型的对象可以接收相同的消息等核心思想。
1248

被折叠的 条评论
为什么被折叠?



