Methods |
Objects are black boxes, so you communicate with them via methods.
A method is an operation that an object can be requested to perform on itself.
A method is identified with a string.
Any class defines its own methods.
A method is applied on an object with:
A method is called:
A method can be both direct and indirect, e.g. Sort method of List class is both direct
and indirect; or can be only direct, e.g. InputBuffered method of Application class is
direct but not indirect; or can be only indirect, e.g. Set method is indirect only.
It means that
res=Notify("button","pressed",0,"app","INPUTBUFFERED")
is not legal (res is 72 [METHOD_NONOTIFY]).
and that
res = DoMethod("status","set","contents","hello world")
is not legal (res is 71 [METHOD_NOTIFY_ONLY]).