logo

Crowdly

Browser

Add to Chrome

Результат компіляції програмного коду: public class One {        int ...

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

Результат

компіляції програмного коду:

public class One {

       int a, b;

 

       One(int i, int j) {

             a = i;

             b = j;

       }

 

       void meth(One o) {

             o.a *= 2;

             o.b /= 2;

       }

}

 

public class OneMain {

 

       public static void main(String[] args) {

             One one = new One(2, 4);

      

             System.out.println(one.a + " " + one.b);

 

             one.meth(one);

             System.out.println(one.a + " " + one.b);

       }

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on virt.ldubgd.edu.ua?

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

Browser

Add to Chrome