예제 #1
0
        public static void Main()
        {
            Student student = new Student("Ivo");

            Discipline discipline = new Discipline("Mathematics");

            string disciplineComments = discipline.Comments();

            string studentComment = student.Comments();
        }
예제 #2
0
 public Teacher(string name, Discipline discipline)
     : base(name)
 {
     this.Discipline = discipline;
 }