public virtual int VisitSalary(Ceo ceo)
 {
     // 10% raise for each year serving the company
     return(ceo.BaseSalary + (ceo.BaseSalary * ceo.Seniority / 10));
 }
 public override int VisitSalary(Ceo e)
 {
     // 10% raise for each year serving the company
     return(base.VisitSalary(e) * 2);
 }
        public override int Visit(Ceo ceo)
        {
            Console.WriteLine($"Greetings, your excellence!");

            return(0);
        }
 public abstract int Visit(Ceo ceo);
 public override int Visit(Ceo ceo)
 {
     // 10% raise for each year serving the company
     return(ceo.BaseSalary + (ceo.BaseSalary * ceo.Seniority / 10));
 }