public new void AddSubject(CourseSubject subject) { Console.WriteLine("Calling ElectronicsCourse.AddSubject(CourseSubject)"); // Custom business logic go here. return; }
public override void RemoveSubject(CourseSubject subject) { Console.WriteLine("Calling ElectronicsCourse.RemoveSubject(CourseSubject)"); // Custom business logic go here. return; }
public void RemoveSubject(CourseSubject subject) { subjects.Remove(subject); }
public virtual void AddSubject(CourseSubject subject) { Console.WriteLine("Calling Course.AddSubject(CourseSubject)"); subjects.Add(subject); }
public void AddSubject(CourseSubject subject) { subjects.Add(subject); }
public sealed override void AddSubject(CourseSubject subject) { Console.WriteLine("Calling CSCourse.AddSubject(CourseSubject)"); // Custom business logic go here. }
public void RemoveSubject(CourseSubject subject) { throw new System.NotImplementedException(); }