示例#1
0
 public ClassRoom(Pupil pupil1, Pupil pupil2, Pupil pupil3)
 {
     classRoom = new Pupil[4] {
         new Pupil(), pupil1, pupil2, pupil3
     };
 }
示例#2
0
 public ClassRoom(Pupil pupil1, Pupil pupil2, Pupil pupil3, Pupil pupil4)
 {
     classRoom = new Pupil[4] {
         pupil1, pupil2, pupil3, pupil4
     };
 }
示例#3
0
 public ClassRoom(Pupil p1, Pupil p2)
 {
     arrPupil = new Pupil[] { p1, p2 };
 }
示例#4
0
 public ClassRoom(Pupil pupil1, Pupil pupil2)
 {
     classRoom = new Pupil[4] {
         new Pupil(), new Pupil(), pupil1, pupil2
     };
 }
示例#5
0
 public ClassRoom(Pupil p1, Pupil p2, Pupil p3)
 {
     arrPupil = new Pupil[] { p1, p2, p3 };
 }
示例#6
0
 public ClassRoom(Pupil p1, Pupil p2, Pupil p3, Pupil p4)
 {
     arrPupil = new Pupil[] { p1, p2, p3, p4 };
 }
示例#7
0
 public ClassRoom(Pupil pupil1, Pupil pupil2)
 {
     pupil.Add(pupil1);
     pupil.Add(pupil2);
 }
示例#8
0
 public ClassRoom(Pupil pupil1, Pupil pupil2, Pupil pupil3) : this(pupil1, pupil2)
 {
     pupil.Add(pupil3);
 }
示例#9
0
 /// <summary>
 /// Instance constructor with three arguments
 /// </summary>
 /// <param name="p0"></param>
 /// <param name="p1"></param>
 /// <param name="p2"></param>
 public ClassRoom(Pupil p0, Pupil p1, Pupil p2) : this(p0, p1)
 {
     pupils[2] = p2;
 }