Method Overloading in general
In this post I am going to introduce “method overloading” in the Haxe programming language. In general, method overloading means that a collection of functions with different type signatures, that share the same name. For example in Java, one would write the following code:
public void foo(String bar) { /* body ... */ }
public void foo(String[] bars) { /* body ... */ }
Then you can call either foo("my string")
or foo(new String[]{"my", "string"})
.
Continue reading Method Overloading achieved with Abstracts in Haxe