Exemple #1
0
 public abstract void Remove(Senior senior);
Exemple #2
0
 public abstract void Add(Senior senior);
Exemple #3
0
 public override void Remove(Senior senior)
 {
     Console.WriteLine("Student is the junior most.. Nothing to remove");
 }
Exemple #4
0
 public override void Add(Senior senior)
 {
     Console.WriteLine("Student is the junior most so cannot add more");
 }
Exemple #5
0
 public override void Remove(Senior senior)
 {
     _seniors.Remove(senior);
 }
Exemple #6
0
 public override void Add(Senior senior)
 {
     _seniors.Add(senior);
 }