/* * Definition of superclass Shape */ class Shape { // protected, not private, cause is used by our subclasses protected int x, y; //*1 Instance variables common to Rect and Circle public void setPos (int xin, int yin) { //*2 Methods common to Rect and Circle x = xin; y = yin; //*2 } }