Question: OOO voo AWN- class Point { private int x; private int y; public void change(Point other){ other.x = 1; other.y = 2; }} 8 public

OOO voo AWN- class Point { private int x; private int y; public void change(Point other){ other.x = 1; other.y = 2; }} 8 public class Main { 9 public static void main(String[] args) { 10 Point one = new Point(); 11 Point two = new Point(); 12 two.change(one); 13 System.out.println(one.x); 14 }} a: line 4 and line 5 b: line 12 Which line causes a c: line 13 problem? d: a and c e: It works just fine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
