Files
Aer/tests/overloading_methods.aer
T

18 lines
339 B
Plaintext

import 'console';
class Program {
public void count(int $a, int $b) {
Console::Print("Counting 2 integers: $a + $b = " + ($a + $b) + "\n");
}
public void count(float $a, float $b) {
Console::Print("Counting 2 floats: $a + $b = " + ($a + $b) + "\n");
}
public void main() {
$this->count(4.3, 5.7);
$this->count(6, 4);
}
}