Internal Implementation is Hidden

Messages define a standard interface to objects. Objects may have different internal implementations as long as the message interface is maintained.

Example: Vector: (send v x)

Vector type 1: x is stored

Vector type 2: r, &theta are stored; x is computed.

The two kinds of vectors appear the same to the outside world.

Contents    Page-10    Prev    Next    Page+10    Index