public interface ITest { public int getX(); public void setX(int theX); public void display() { System.out.println(getX()); } } public class Test implements ITest { public int getX() { return x; } public void setX(int theX) { x = theX; } private int x; public static void main(String[] args) { Test obj = new Test(); obj.setX(15); obj.display(); } }
Select the most appropriate answer.