Exemplo n.º 1
0
 public virtual void iAmPrinting(Ispitanie test)
 {
     if (test is Test)
     {
         Console.WriteLine($"Тип: Test. Вызываю ToString()...\n" + test.ToString());
     }
     if (test is Examination)
     {
         Console.WriteLine($"Тип: Examination. Вызываю ToString()...\n" + test.ToString());
     }
     if (test is Zachet)
     {
         Console.WriteLine($"Тип: FinalExamination. Вызываю ToString()...\n" + test.ToString());
     }
 }
Exemplo n.º 2
0
 public void Delete(Ispitanie isp)
 {
     list.Remove(isp); Count--;
 }
Exemplo n.º 3
0
 public void Add(Ispitanie isp)
 {
     list.Add(isp); Count++;
 }