public override void Accept(VisitorBase visitor) { visitor.Visit(this); foreach (var employee in Subordinates) { employee.Accept(visitor); } }
public override void Accept(VisitorBase visitor) { visitor.Visit(this); }
public abstract void Accept(VisitorBase visitor);
public void Accept(VisitorBase visitor) { Employee.Accept(visitor); }