/* * Definition of superclass Shape */ abstract class Shape { // protected, not private, cause is used by our subclasses protected int x, y; public void setPos (int xin, int yin) { x = xin; y = yin; } abstract public void draw(); abstract public float area(); }