✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Результат компіляції програмного коду
class One {
int a;
int b;
int c;
One(int a, int b, int c) {
this.a = a;
this.b = b;
this.c = c;
}
One(int a, int b) {
this.a = a;
this.b = b;
this.c = b;
}
void arithmetic() {
int d = a + b + c;
System.out .print(d + " ");
}
}
public class Main {
public static void main(String[] args) {
One one_1 = new One(1, 2, 3);
One one_2 = new One(1, 2);
one_1.arithmetic();
one_2.arithmetic();
}
}