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.

16 lines
295 B

  1. class Program {
  2. public void count(int $a, int $b) {
  3. print("Counting 2 integers: $a + $b = ", $a + $b, "\n");
  4. }
  5. public void count(float $a, float $b) {
  6. print("Counting 2 floats: $a + $b = ", $a + $b, "\n");
  7. }
  8. public void main() {
  9. $this->count(4.3, 5.7);
  10. $this->count(6, 4);
  11. }
  12. }