Think in java_01_对象导论

我们之所以将自然界分解,组织成各种概念,并按其含义分类


抽象

All programming languages provide abstractions.
这里写图片描述
Five basic characteristics of Smalltalk

  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.

an even more succinct description of an object:

An object has state, behavior and identity.

猜你喜欢

转载自blog.csdn.net/qq_33218873/article/details/80964553