// 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 }
// Create student without knowledge public Student(string name) : base(0) { _name = name; PersonsBase.AddPersonToBase(this); // Student added to base when created }