public void Practice() { string specialization; int experience_years; PracticEventArgs fargs; try { Console.WriteLine("Enter specialization: "); specialization = Console.ReadLine(); Console.WriteLine("Enter work experience year: "); experience_years = Int32.Parse(Console.ReadLine()); fargs = new PracticEventArgs(specialization, experience_years); } catch { fargs = new PracticEventArgs(); } Console.WriteLine("Practiser {0} is training staff...\n", name); if (PracticeEvent != null) { PracticeEvent((Practiser)this, fargs); } }
public override void Training(Practiser f, PracticEventArgs fargs) { Console.WriteLine("Student can not train "); }
abstract public void Training(Practiser f, PracticEventArgs fargs);