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