Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
13
Task/Call-an-object-method/Haxe/call-an-object-method.haxe
Normal file
13
Task/Call-an-object-method/Haxe/call-an-object-method.haxe
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class ExampleClass {
|
||||
public function exampleMethod() {
|
||||
return "This is a method!";
|
||||
}
|
||||
public function new() {}
|
||||
}
|
||||
|
||||
class Main {
|
||||
static public function main():Void {
|
||||
var exampleObject = new ExampleClass();
|
||||
trace(exampleObject.exampleMethod());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue