本文整理汇总了C#中Teacher.AddToughtDisciplines方法的典型用法代码示例。如果您正苦于以下问题:C# Teacher.AddToughtDisciplines方法的具体用法?C# Teacher.AddToughtDisciplines怎么用?C# Teacher.AddToughtDisciplines使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Teacher
的用法示例。
在下文中一共展示了Teacher.AddToughtDisciplines方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
private static void Main()
{
var mg = new School("Математическа гимназия - Атанас Радев");
var stanislav = new Student("Станислав Славов", 124225);
var gosho = new Student("Георги Ганков", 124233);
var biology = new Discipline("Биология", 10, 8);
var physics = new Discipline("Физика", 8, 4);
var math = new Discipline("Математика", 20, 20);
var english = new Discipline("Английски език", 18, 10);
var literature = new Discipline("Литература", 10, 0);
var minka = new Teacher("Минка Георгиева");
var pencho = new Teacher("Пенчо Минчев");
minka.AddToughtDisciplines(biology, literature, english);
pencho.AddToughtDisciplines(math, physics);
var b12 = new Class("12-ти Б");
mg.AddClass(b12);
b12.AddStudents(stanislav, gosho);
}