previous | start | next

## CarShape and HouseShape Classes

    public class CarShape implements SceneShape

    {

       ...

       public void setSelected(boolean b) { selected = b; }

       public boolean isSelected() { return selected; }

       private boolean selected;

    }

    public class HouseShape implements SceneShape

    {

       ...

       public void setSelected(boolean b) { selected = b; }

       public boolean isSelected() { return selected; }

       private boolean selected;

    }

previous | start | next