✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Результат компіляції програмного коду
public class One {
double arithmetic (double a, double b) {
return a + b;
}
}
public class Two {
double arithmetic (double a, double b) {
return a - b;
}
}
public class Three {
double arithmetic (double a, double b) {
return a / b;
}
}
public class Main {
public static void main(String[] args) {
One one = new One();
Two two = new Two();
Three three = new Three();
double i = one.arithmetic(15, 5);
double j = two.arithmetic(15, 5);
double k = three.arithmetic(15, 5);
System.out.println(j);
}
}