Call an object method: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 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="ecmascript"wren>class MyClass {
construct new() {}
method() { System.print("instance method called") }
Line 2,313:
static method called
</pre>
 
=={{header|XBS}}==
You can call object methods using two types of structures. Classes and Objects.
9,483

edits