public static void Main() { Employee employee = new Employee("Ivan Ivanov"); Robot robot = new Robot("T1000", 100); RechargeStation rechargeStation = new RechargeStation(); rechargeStation.Recharge(robot); employee.Work(8); robot.Work(24); Console.WriteLine(robot.CurrentPower); }
public static void Main() { Robot robot = new Robot("R2D2", 150); Worker employee = new Employee("Luk"); RechargeStation station = new RechargeStation(); station.Recharge(robot); robot.Work(12); employee.Work(8); Console.WriteLine(robot.CurrentPower); }