1 25 package org.objectweb.speedo.pobjects.detach; 26 27 30 public class Coach { 31 32 protected String name; 33 protected int experience; 34 protected Team team; 35 36 public Coach(String name, int experience, Team team){ 37 this.name = name; 38 this.experience = experience; 39 this.team = team; 40 } 41 42 public int getExperience() { 43 return experience; 44 } 45 46 public String getName() { 47 return name; 48 } 49 50 public Team getTeam() { 51 return team; 52 } 53 54 public void setExperience(int i) { 55 experience = i; 56 } 57 58 public void setName(String string) { 59 name = string; 60 } 61 62 public void setTeam(Team team) { 63 this.team = team; 64 } 65 66 public String toString(){ 67 return "Coach[" + name + ", " + experience + ", " + team.getTown() +" ]"; 68 } 69 } 70 | Popular Tags |