public interface IThree { public int getX(); public int getY(); public int getZ(); } public class One { public int getX() { return x; } private int x = 2; } public class Two { public int getY() { return y; } private int y = 5; } public class Three extends One extends Two implements IThree { public int getZ() { return z; } private int z = 8; public static void main(String[] args) { Three obj = new Three(); System.out.println(obj.getX() + ", " + obj.getY() + ", " + obj.getZ()); } }
Select the most appropriate answer.