public class One { public int getValue() { return x; } public void setValue(int theX) { x = theX; } protected int x = 3; } public class Two extends One { public void setValue(int theX, int theY) { x = theX + theY; } public static void main(String[] args) { Two obj = new Two(); obj.setValue(2); System.out.println(obj.getValue()); } }
Select the most appropriate answer.