Ejemplo n.º 1
0
        private static void Main()
        {
            School mySchool = new School();
            var firstGrade = new ClassesOfStudents("UniqueA");
            firstGrade.AddStudent(new Students("123512", "Gosho"));
            firstGrade.AddStudent(new Students("183522", "Ivan"));
            firstGrade.AddStudent(new Students("749812", "Artur"));
            firstGrade.AddStudent(new Students("923519", "Delaila"));
            firstGrade.AddStudent(new Students("563781", "Yeylz"));
            firstGrade.AddTeacher(new Teachers("Ivanova", new Disciplines("Biology", 12, 3)));
            firstGrade.AddTeacher(new Teachers("Georgieva", new Disciplines("History", 13, 2)));
            var gosheto = new Teachers("Gosho", new Disciplines("Math", 10, 5));
            firstGrade.AddTeacher(gosheto);

            string classInfo = firstGrade.GetClassInfo();
            Console.WriteLine(classInfo);
            string goshetoSays = gosheto.Comment("I love cookies!");
            Console.WriteLine(goshetoSays);
        }
Ejemplo n.º 2
0
        private static void Main()
        {
            School mySchool   = new School();
            var    firstGrade = new ClassesOfStudents("UniqueA");

            firstGrade.AddStudent(new Students("123512", "Gosho"));
            firstGrade.AddStudent(new Students("183522", "Ivan"));
            firstGrade.AddStudent(new Students("749812", "Artur"));
            firstGrade.AddStudent(new Students("923519", "Delaila"));
            firstGrade.AddStudent(new Students("563781", "Yeylz"));
            firstGrade.AddTeacher(new Teachers("Ivanova", new Disciplines("Biology", 12, 3)));
            firstGrade.AddTeacher(new Teachers("Georgieva", new Disciplines("History", 13, 2)));
            var gosheto = new Teachers("Gosho", new Disciplines("Math", 10, 5));

            firstGrade.AddTeacher(gosheto);

            string classInfo = firstGrade.GetClassInfo();

            Console.WriteLine(classInfo);
            string goshetoSays = gosheto.Comment("I love cookies!");

            Console.WriteLine(goshetoSays);
        }
Ejemplo n.º 3
0
 public void AddClass(ClassesOfStudents studentClass)
 {
     this.allClasses.Add(studentClass);
 }
Ejemplo n.º 4
0
 public void AddClass(ClassesOfStudents studentClass)
 {
     this.allClasses.Add(studentClass);
 }