logo

Crowdly

Browser

Add to Chrome

Чи матиме метод display() із вкладеного класу Inner доступ до змінної outer_x: ...

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

Чи

матиме метод display()

із вкладеного класу Inner доступ до змінної outer_x:

class Outer {

     int outer_x = 100;

 

     void

test()

{

           Inner inner = new Inner();

           inner.display();

     }

 

     static class Inner {

           void display() {

                System.out.println(outer_x);

           }

     }

}

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