| Next | February 2001 | Slide #5 |
An object is a parcel of related data
Also belonging to the object are methods which are designed to operate on the data
Only the object's methods need to know how the data is organized
Object method call syntax:
$object->method(...);
This is very similar to:
method($object, ...);
The object is implicitly passed to the method
The method can read or modify the object itself
| Next | ![]() |
Copyright © 2001 M-J. Dominus |