Ejemplo n.º 1
0
 public override string ToString()
 {
     return(string.Format("{0}Fuel Type: {1}   There are {2} liters of fuel available, out of a {3} liter tank capacity", Environment.NewLine, FuelType.ToString(), CurrentPropulsionAmount.ToString(), MaxPropulsion.ToString()));
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(string.Format("{0}There are {1} hours of Battery power remaining {2}", Environment.NewLine, CurrentPropulsionAmount.ToString(), Environment.NewLine));
 }