public override string ToString() { StringBuilder vehicleStringData = new StringBuilder(); vehicleStringData.Append(base.ToString() + "\n"); vehicleStringData.Append(m_FuelData.ToString()); return(string.Format(vehicleStringData.ToString())); }
public override string ToString() { StringBuilder vehicleStringData = new StringBuilder(); vehicleStringData.Append(base.ToString() + "\n"); vehicleStringData.Append(m_WheelData.ToString() + "\n"); vehicleStringData.Append(m_FuelData.ToString() + "\n"); vehicleStringData.Append("Trunk Volume: " + m_TrunkVolume + "\n"); vehicleStringData.Append("Driving hazardous materials? : " + m_IsDrivingHazardousMaterial); return(string.Format(vehicleStringData.ToString())); }