static void Main(string[] args) { ExcelentPupil excelentPupil = new ExcelentPupil("S***n"); BadPupil badPupil = new BadPupil("Stas"); GoodPupil goodPupil = new GoodPupil("Leha"); GoodPupil goodPupil2 = new GoodPupil("Vasya"); goodPupil.Study(4); goodPupil.Read(4); goodPupil.Write(4); goodPupil.Relax(3); goodPupil2.Study(4); goodPupil2.Read(4); goodPupil2.Write(4); goodPupil2.Relax(3); excelentPupil.Study(5); excelentPupil.Read(5); excelentPupil.Write(5); excelentPupil.Relax(2); badPupil.Study(2); badPupil.Read(2); badPupil.Write(2); badPupil.Relax(5); ClassRoom classRoom = new ClassRoom(goodPupil, goodPupil2, badPupil); classRoom.pupilsClass.Add(excelentPupil); classRoom.Show(); Console.ReadLine(); }
public void ExcelentPupils() { ExcelentPupil excelentPupil = new ExcelentPupil(pupilOne, pupilTwo, pupilThree, pupilFour); excelentPupil.Study(); excelentPupil.Read(); excelentPupil.Write(); excelentPupil.Relax(); }