next up previous contents index
Next: Method invocation Up: Objects Previous: Constructors and destructors

Methods

Object methods are just like ordinary procedures or functions, only they have an implicit extra parameter : self. Self points to the object with which the method was invoked.

When implementing methods, the fully qualified identifier must be given in the function header. When declaring methods, a normal identifier must be given.


next up previous contents index
Next: Method invocation Up: Objects Previous: Constructors and destructors

Michael Van Canneyt
Fri Sep 25 09:15:40 MEST 1998