Package Bridge

Examples of Bridge.Shape.draw()


    Shape redCircle = new Circle(150,150, 15, new RedCircle());
    Shape blueCircle = new Circle(150, 150, 15, new BlueCircle());
   
    //Draw the circles
    redCircle.draw();
    blueCircle.draw();
    System.out.println();
   
 
 
  private static void compositeDemo() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.