public class InheritedFigura extends Figura{ private int a; public void setX(int value) { this.a = value; System.out.println("setXInher"); } public int getX() { System.out.println("getXInher"); return a; } public static void main(String[] args) { InheritedFigura figura = new InheritedFigura(); System.out.println(figura.getX()); System.out.println(figura.getY()); figura.setX(88); figura.setY(99); System.out.println(figura.getX()); System.out.println(figura.getY()); InheritedFigura figura2 = new InheritedFigura(); System.out.println(figura.getX()); System.out.println(figura.getY()); } }