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;
        }
示例#3
0
 public void RemoveSubject(CourseSubject subject)
 {
     subjects.Remove(subject);
 }
示例#4
0
        public virtual void AddSubject(CourseSubject subject)
        {
            Console.WriteLine("Calling Course.AddSubject(CourseSubject)");

            subjects.Add(subject);
        }
 public void AddSubject(CourseSubject subject)
 {
     subjects.Add(subject);
 }
示例#6
0
        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();
 }