예제 #1
0
        public static void Main()
        {
            try
            {
                Students st = new Students("ivan", 22);
                Teacher pesho = new Teacher("Mark");
                Discipline p1 = new Discipline("math", 2, 3);
                pesho.AddDiscipline(p1);
                pesho.AddDiscipline(new Discipline("biology", 2, 5));

                Classes firstClass = new Classes("SomeClass");
                pesho.Comment = "";
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
예제 #2
0
파일: Classes.cs 프로젝트: stoyans/Telerik
 public void AddTeacher(Teacher teacher)
 {
     this.teachers.Add(teacher);
 }