static void AtTheWorkstation(Iworker worker) { Console.WriteLine("at the work station"); worker.StartWork(); worker.StopWork(); }
public Manager(Iworker worker) { this.worker = worker; }
static void AtTheCafeteria(Iworker worker) { Console.WriteLine("at the cafeteria"); worker.StartEat(); worker.StopEat(); }