✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class abc.Point {
abc.Point (int a, int b) {
x = a;
y = b;
}
int x, y;
...
}
Який буде результат такого прикладу?
abc.Point p1 = new abc.Point (3, 4);
abc.Point p2 = p1;
p1.x = 5;
p1 = new abc.Point (4, 4);
System.out.print (p2.x - p1.x);
(Java)