Method
From Free Pascal wiki
Jump to navigationJump to searchThe printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
│
English (en) │
français (fr) │
русский (ru) │
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.
However, since static class methods are just “global” routines within the type's namespace, such methods do not know the self
identifier.
¹²