Question: java oop question class Foo { private Bar b; private int x; class Bar { public void setX(int value) { x = value;//error? } }
java oop question 
class Foo { private Bar b; private int x; class Bar { public void setX(int value) { x = value;//error? } } } Is there an error at the line indicated? Why or why not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
