belliash
55acf8111f
All checks were successful
The build was successful.
In most (all?) modern OOP languages class members visibility is assumed to be private and programmer has to consciously set it to public or protected. PHP has the different approach what can cause a security flaws in written scripts. AerScript will not follow this way, as it seems to be conceptually broken.
17 lines
295 B
Plaintext
17 lines
295 B
Plaintext
class Program {
|
|
|
|
public void count(int $a, int $b) {
|
|
print("Counting 2 integers: $a + $b = ", $a + $b, "\n");
|
|
}
|
|
|
|
public void count(float $a, float $b) {
|
|
print("Counting 2 floats: $a + $b = ", $a + $b, "\n");
|
|
}
|
|
|
|
public void main() {
|
|
$this->count(4.3, 5.7);
|
|
$this->count(6, 4);
|
|
}
|
|
|
|
}
|