Package people

Examples of people.Farmer


    if(leaderName.equals(""))
      leaderName = "Jonathan";

    //Set leader profession (Farmer, Banker, or Carpenter)
    if(dropProfession.getText().equals("Farmer")){
      partyLeader = new Farmer(leaderName);
    } else if(dropProfession.getText().equals("Banker")){
      partyLeader = new Banker(leaderName);
    } else {
      partyLeader = new Carpenter(leaderName);
    }
View Full Code Here

TOP

Related Classes of people.Farmer

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.