logo

Crowdly

Browser

Add to Chrome

Вкажіть результат виконанню наступного коду: public class SomeClass { pub...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Вкажіть результат виконанню наступного коду:

public class SomeClass {

public static void main (String [] args) {

SomeClass s = new SomeClass ( "5", "6");

SomeClass s1 = new SomeClass ( "10", "12");

s1.doSomething (s);

System.out.print (s1.x + s1.y + sx + sy);

}

private void doSomething (SomeClass s) {

sx = "5";

this.y = "6";

}

public SomeClass (String x, String y) {

this.x = x;

this.y = y;

}

String x, y;

}

(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