/// <summary> /// на случай, если понадобиться добавить еще пару учеников /// </summary> /// <param name="pupil"></param> public void Addpups(Pupil pupil) { pupilsInClassRoom.Add(pupil); }
public ClassRoom(Pupil pupil1, Pupil pupil2) : this(pupil1) { pupilsInClassRoom.Add(pupil2); }
public ClassRoom(Pupil pupil1, Pupil pupil2, Pupil pupil3) : this(pupil1, pupil2) { pupilsInClassRoom.Add(pupil3); }
public ClassRoom(Pupil pupil) { pupilsInClassRoom.Add(pupil); }