Exemplo n.º 1
0
 /// <summary>
 /// The copy constructor
 /// </summary>
 /// <param name="source">A <see cref="Class"/> instance to copy the data from</param>
 public Class( Class source )
 {
     _name = source._name;
     _headTeacher = source._headTeacher;
     _viceHeadTeacher = source._viceHeadTeacher;
     _chairmanName = source._chairmanName;
     _viceChairman = source._viceChairman;
     _viceViceChairman = source._viceViceChairman;
 }
Exemplo n.º 2
0
 /// <summary>
 /// The copy constructor
 /// </summary>
 /// <param name="source">A <see cref="Student"/> object to copy the data from</param>
 public Student( Student source )
 {
     _name = source._name;
     _class = source._class;
     _disabilityLevel = source._disabilityLevel;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs a new student
 /// </summary>
 /// <param name="name">The name of the student</param>
 /// <param name="ownClass">The class the student belongs to</param>
 /// <param name="disabilityLevel">The disability level of the student</param>
 public Student( string name, Class ownClass, DisabilityLevel disabilityLevel = DisabilityLevel.None )
 {
     _name = name;
     _class = ownClass;
     _disabilityLevel = disabilityLevel;
 }