Examples of OctopusType


Examples of AbstractFactory.OctopusType

     *
     * In essence, it instantiates factories...
     */
   
    //Test Octopus Abstract Factory
    OctopusType normal = OctopusType.NORMAL;
    OctopusType mutant = OctopusType.MUTANT;
    OctopusType supermutant = OctopusType.SUPERMUTANT;
   
    try {
      System.out.println("Making a normal Octopus, (hopefully with 8 tentacles)...");
      System.out.println(OctopusFactory.makeOctopus(normal));
    } catch (Exception e) {
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.