Call an object method: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 466: | Line 466: | ||
end |
end |
||
type CallAnObjectMethod |
type CallAnObjectMethod |
||
var |
var myInstance = MyClass() ^|creating an instance|^ |
||
myInstance.method() |
|||
MyClass.method() |
MyClass.method() |
||
</syntaxhighlight> |
</syntaxhighlight> |