Exemplo n.º 1
0
        public override string ToString()
        {
            int    chargerCapacityMAh = 300;
            var    hours   = ShowChargingTime(chargerCapacityMAh);
            string message = $"Type {vBatteryType.ToString()}, charging time {hours} hours";

            return(message);
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            string message = $"Type {vBatteryType.ToString()}, capacity {vBatteryCapacityMAh} MAh";

            return(message);
        }