Beispiel #1
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;
 }
Beispiel #2
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;
 }