Method

This is an old revision of Method, edited by Kai Burghardt at . The current revision is 35499.

remove [[Category:Control Structures]]; add /* self identifier */; more concise definition

A method is a routine that is associated with an object or class.

self identifier

Inside method definitions the special identifier self is available. In static or class methods it identifies the object/class type itself. In instance methods self identifies the very instance.