Exemplo n.º 1
0
 public void VisitSimple(SimpleWorker simpWorker)
 {
     Console.WriteLine($"Cook salary: {simpWorker.receiveSalary() + (_dish * 2)}");
 }
Exemplo n.º 2
0
 public void VisitSimple(SimpleWorker simpWorker)
 {
     Console.WriteLine($"Bartender salary: { simpWorker.receiveSalary() + (_drinksSold * 2)}");
 }
Exemplo n.º 3
0
 public void VisitSimple(SimpleWorker simpWorker)
 {
     Console.WriteLine($"Cleaner salary: { simpWorker.receiveSalary() + (_rooms * 1)}");
 }