Source of ShapeDemo.java


  1: 
  2: public class ShapeDemo
  3: {
  4:     public static void main(String[] args)
  5:     {
  6:         RectangleInterface box = new Rectangle(5, 8, 4);
  7:                 box.drawHere();
  8: 
  9:                 box.set(5, 5);
 10:                 box.setOffset(10);
 11:                 box.drawAt(2);
 12:     }
 13: }