public class One { public One(int theX) { x = theX; } public int getVal() { return x; } protected int x; } public class Two extends One { public Two(int theX, int theY) { super(theX); y = theY; } private int getVal() { return x + y; } protected int y; public static void main(String[] args) { Two obj = new Two(3, 4); obj.getVal(); } }
Select the most appropriate answer.