Call an object method: Difference between revisions
→{{header|ALGOL 68}}: more notes
(Added Algol 68) |
(→{{header|ALGOL 68}}: more notes) |
||
Line 98:
<br>
Class methods could be members of the structure (as here) without a "this" parameter, or could be procedures defined outside the structure.
<br>
In this example, the instance and class methods return VOID, but this is not necessary, any return type could be used.
<syntaxhighlight lang="algol68">
BEGIN # demonstrate a possible method of simulating class & instance methods #
|