Call an object method: Difference between revisions
Content added Content deleted
Line 2,122: | Line 2,122: | ||
// instantiate object |
// instantiate object |
||
hw := HelloWorld{} |
|||
// call methods of object |
// call methods of object |
||
hw.say_hello() |
|||
hw.say_bye() |
|||
} |
} |
||
</syntaxhighlight> |
</syntaxhighlight> |