Source of ShapeDemo.java


  1: //ShapeDemo.java
  2: 
  3: public class ShapeDemo
  4: {
  5:     public static void main(String[] args)
  6:     {
  7:         /*
  8:         ShapeBasics sb = new ShapeBasics();
  9:         sb.drawHere();
 10:         sb.drawAt(3);
 11:         */
 12: 
 13:         RectangleInterface box = new Rectangle(5, 8, 4);
 14:                 box.drawHere();
 15: 
 16:                 box.set(5, 5);
 17:                 box.setOffset(10);
 18:                 box.drawAt(2);
 19:     }
 20: }