public Corps(Scout captain, List <Group> groups) { this.captain = captain; this.groups = groups; groups.ForEach(x => TotalMarks += x.TotalMarks); TotalMarks += this.captain.Marks; }
//CONSTRUCTORS public Group(string name, Scout leader, List <Scout> members) { this.name = name; this.leader = leader; this.members = members; members.ForEach(x => TotalMarks += x.Marks); TotalMarks += this.leader.Marks; }
public void RemoveScout(Scout scoutToRemove) { Members.Remove(scoutToRemove); }
//METHODS public void AddScout(Scout scoutToAdd) { Members.Add(scoutToAdd); }