logo

Crowdly

Browser

Add to Chrome

Дан наступний клас: class abc.Point { abc.Point (int a, int b) { x =...

✅ 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)

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome