public class One { public One(int x) { x = x; } public int getX() { return x; } private int x = 1; } public class Two { public static void main(String[] args) { One obj= new One(2); System.out.println(obj.getX()); } }
Select the most appropriate answer.