logo

Crowdly

Browser

Add to Chrome

Що буде виведено на екран в результаті виконання наступного коду: public clas...

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

Що буде виведено на екран в результаті виконання наступного коду:

public class SomeClass {

public void perform () {

this.perform (1);

System.out.print ( "1");

}

public void perform (int val) {

System.out.print (val);

}

public static void main (String [] args) {

SomeClass c = new SomeClass2 ();

c.perform (4);

}

}

class SomeClass2 extends SomeClass {

public void perform () {

super.perform ();

System.out.print ( "3");

}

public void perform (int val) {

super.perform ();

System.out.print (val);

}

}

(Java)

0%
0%
0%
0%
0%
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