예제 #1
0
 private static void show(IFigure f) {
   f.draw();
   System.out.println("My area : " + f.getArea());
   System.out.println("My girth : " + f.getGirth());
 }
예제 #2
0
 public void draw(IPainter painter) {
   figure.draw(painter);
 }