Contents    Page-10    Prev    Next    Page+10    Index   

Access to Objects

Access to objects is accomplished by sending messages to them.

A message or method call is like a function call, but which function is called depends on the runtime type (class) of the object.

Wrapping access to a field in accessor methods helps information hiding, but hurts efficiency.