예제 #1
0
 // Create student with knowledge
 public Student(string name, int levelOfKnowledge)  : base(levelOfKnowledge)
 {
     _name = name;
     SetKnowledge(levelOfKnowledge);
     PersonsBase.AddPersonToBase(this); // Student added to base when created
 }
예제 #2
0
 // Create student without knowledge
 public Student(string name) : base(0)
 {
     _name = name;
     PersonsBase.AddPersonToBase(this);    // Student added to base when created
 }