Question: public class MyClass { private int x; public int y; }//end of class MyClass public class YourClass { private int x; public int y; public

public class MyClass {
private int x;
public int y;
}//end of class MyClass
public class YourClass {
private int x;
public int y;
public void foo() {
MyClass c = new MyClass();
int temp = ..... ;
}
}//end of class YourClass
only: x , y
only: x , y , c.y
only: x , y , c.x , c.y
only: y , c.y

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!