Example #1
0
 public override void Work()
 {
     Console.WriteLine($"{Name} brings orders, because {Name} is a {sp.ToString()}"); // "приносит заказы"
     Console.WriteLine($"{Name} get ${(int)sp} per month\n");
 }
Example #2
0
 public override void Work()                                                              //переопределенный метод Work()
 {
     Console.WriteLine($"{Name} washes the dishes, because {Name} is a {sp.ToString()}"); // "моет посуду"
     Console.WriteLine($"{Name} get ${(int)sp} per month\n");
 }
Example #3
0
 public override void Work()
 {
     Console.WriteLine($"{Name} cooks food, because {Name} is a {sp.ToString()}"); // "готовит еду"
     Console.WriteLine($"{Name} get ${(int)sp} per month\n");
 }
Example #4
0
 public override void Work()
 {
     Console.WriteLine($"{Name} manages everything, because {Name} is a {sp.ToString()}"); // "управляет всем"
     Console.WriteLine($"{Name} get ${(int)sp} per month\n");
 }