static void Main() { var disc1 = new List <Discipline> { new Discipline("Math", 5, 6), new Discipline("Phisics", 3, 2) }; Teacher ivan = new Teacher("Ivan Ivanov", disc1); var disc2 = new List <Discipline> { new Discipline("Literature", 2, 6), new Discipline("Geography", 4, 6) }; Teacher pesho = new Teacher("Pesho", disc2); Console.WriteLine(ivan); var teachers = new List <Teacher> { ivan, pesho }; var stClass = new ClassOfStudents("7B", teachers); Console.WriteLine(stClass); }
static void Main(string[] args) { Student Pesho = new Student("Pesho Konstancaliev", 24, "stupid!"); Student Lacho = new Student("Lachezar Petrov", 2, "verry stupid!"); Student Penka = new Student("Penka Grozdanova", 4, "not so stupid!"); Student Evelina = new Student("Evelina Makedonska", 14, "stupid!"); Student Evstati = new Student("Evstati Penev", 1, "verry stupid!"); Student Drago = new Student("Drago Petrov", 11, "stupid!"); Student Muncho = new Student("Muncho Gunchev", 13, "stupid!"); Discipline Math = new Discipline("Math", 50, 50, "cool"); Discipline Geography = new Discipline("Geography", 2, 4, "verry cool"); Discipline Astronomy = new Discipline("Astronomy", 4, 10, "so-so"); Teacher Tomov = new Teacher(new Discipline[] {Math, Geography}, "Pesho Tomov", "stupid!"); Teacher Petrov = new Teacher(new Discipline[] { Astronomy, Geography }, "Harampi Petrov", "verry stupid!"); Teacher Dragov = new Teacher(new Discipline[] { Math, Astronomy }, "Drago Dragov", "stupid!"); Teacher Haralambev = new Teacher(new Discipline[] { Math, Geography }, "Mryshtio Haralambev", "stupid!"); ClassOfStudents theCoolestClass = new ClassOfStudents(new Student[] { Pesho, Evelina, Evstati, Drago }, new Teacher[] { Dragov, Haralambev, Tomov }, "5b"); }
public void AddClassOfStudents(ClassOfStudents classOfStudents) { _classesOfStudents.Add(classOfStudents); }