Classes: Difference between revisions
Content added Content deleted
(Nimrod -> Nim) |
|||
Line 1,739: | Line 1,739: | ||
- : unit = () |
- : unit = () |
||
</pre> |
</pre> |
||
=={{header|Oforth}}== |
|||
<lang Oforth>Class creation |
|||
Object Class new: MyClass(variable) |
|||
MyClass method: initialize(v) { v := variable }</lang> |
|||
Usage : instantiation |
|||
<lang Oforth>MyClass new("some value")</lang> |
|||
=={{header|ooRexx}}== |
=={{header|ooRexx}}== |