Aer Interpreter Source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
276 B

class Test {
public void __construct(string $a) {
print("$a\n");
}
public void __construct(int $a, int $b) {
print("$a + $b = ", $a + $b, "\n");
}
}
class Program {
public void main() {
object $a, $b;
$a = new Test('Hello world!');
$b = new Test(4, 7);
}
}