public void Visit(StudentEmployee employee) { _expenses += employee.HourRate*employee.HoursWorkedThisMonth; }
public void Visit(StudentEmployee employee) { Console.WriteLine("Student: " + employee.HiredDate); }
public void Visit(StudentEmployee employee) { _expenses += employee.HourRate * employee.HoursWorkedThisMonth; }