✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Результат компіляції програми
public class One {
double arithmetic (double a, double b) {
return a + b;
}
int arithmetic(int a) {
return a*a;
}
}
public class Two {
double arithmetic (double a, double b) {
return a - b;
}
int arithmetic(int a) {
return a / a;
}
}
public class Main {
public static void main(String[] args) {
One one = new One();
Two two = new Two();
System.out.println(one.arithmetic(5));
System.out.println(two.arithmetic(15, 5));
}
}