public static void Main() { var employee = new Employee("worker"); var robot = new Robot("01", 500); ISleeper sleeper = employee; IRechargeable rechargeable = robot; }
public void Recharge(IRechargeable rechargeable) { rechargeable.Recharge(); }
public ChargingStation(IRechargeable rechargeables) { }
public ChargingStation(IRechargeable robot) { }
public ChargingStation(IRechargeable rechargeable) { this.rechargeable = rechargeable; }