 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
n |
To be invoked
properly, a method
|
|
|
sometimes
requires information from the
|
|
|
client.
Information is passed in as
|
|
|
parameters.
|
|
|
n |
When a client
invokes a method, the
|
|
|
client must
provide a value of the
|
|
|
appropriate type
for each parameter.
|
|
|
n |
Syntax:instance.method(p0,p1,p2…)
|
|
|
n |
The only way an
object’s state can
|
|
|
change is by
invoking one of the object’s
|
|
methods.
|
|