Call an object method: Difference between revisions
m
→{{header|Wren}}: Changed to Wren S/H
No edit summary |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
(One intermediate revision by one other user not shown) | |||
Line 751:
// Method with single argument
print mutStr
Line 769:
Hello, Rosetta Code!
</pre>
=={{header|Go}}==
Line 2,299 ⟶ 2,298:
=={{header|Wren}}==
Note that it's possible in Wren for instance and static methods in the same class to share the same name. This is because static methods are considered to belong to a separate meta-class.
<syntaxhighlight lang="
construct new() {}
method() { System.print("instance method called") }
Line 2,314 ⟶ 2,313:
static method called
</pre>
=={{header|XBS}}==
You can call object methods using two types of structures. Classes and Objects.
|