public override string ToString() { int chargerCapacityMAh = 300; var hours = ShowChargingTime(chargerCapacityMAh); string message = $"Type {vBatteryType.ToString()}, charging time {hours} hours"; return(message); }
public override string ToString() { string message = $"Type {vBatteryType.ToString()}, capacity {vBatteryCapacityMAh} MAh"; return(message); }