예제 #1
0
        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);
            }
        }
예제 #2
0
파일: Student.cs 프로젝트: chumaknadya/OOP
 public override void Training(Practiser f, PracticEventArgs fargs)
 {
     Console.WriteLine("Student can not train ");
 }
예제 #3
0
파일: Human.cs 프로젝트: chumaknadya/OOP
 abstract public void Training(Practiser f, PracticEventArgs fargs);