Package Composite

Examples of Composite.Crew


  private static void compositeDemo() {
   
    System.out.println("COMPOSITE DEMO");
    System.out.println();
   
    Crew captain = new Crew("Katherine Janeway","Captain","Command","Captain");
    Crew firstOfficer = new Crew("Chakotay","Commander","Command","First Officer");
   
    Crew chiefEngineer = new Crew("B'Elanna Torres","Lieutenant","Engineering and Security","Chief Engineer");
    Crew chiefOfSec = new Crew("Tuvok","Lieutenant Commander","Engineering and Security","Chief of Security");
   
    Crew helmsman = new Crew("Tom Paris","Lieutenant Junior Grade","Command","Conn");
    Crew opsMan = new Crew("Harry Kim","Ensign","Engineering and Security","Operations Manager");
    Crew engineer1 = new Crew("Vorik","Ensign","Engineering and Security","Engineer");
   
    Crew medic = new Crew("The Doctor","N/A","Science and Medical","Captain");
   
   
    captain.add(firstOfficer);
    firstOfficer.add(chiefOfSec);
    firstOfficer.add(chiefEngineer);
View Full Code Here

TOP

Related Classes of Composite.Crew

Copyright © 2018 www.massapicom. 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.