Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Collection;
- public interface FootballClub extends Club {
- /**
- * Adds a new member to the club
- * @param object of type implementing ClubMember
- */
- public void addMember(ClubMember member);
- /**
- * Obtains the collection of current members
- * @return actual collection of existing members
- */
- public Collection<ClubMember> getMembers();
- /**
- * Changes the trainer of the football club
- * @param dedicated member that has the trainer role
- * @apiNote the trainer is not part of the member collection
- */
- public void setTrainer(ClubMember member);
- /**
- * Obtains the trainer of this club
- */
- public ClubMember getTrainer();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement