예제 #1
0
        public override string GetInfo()
        {
            string msg = base.GetInfo();

            msg += string.Format(@"{0}
", EnergyManager.GetInfo());

            return(msg);
        }
예제 #2
0
 internal Vehicle(string i_OwnerName, string i_OwnerPhone, string i_LicenseNumber, int i_NumberOfWheels, EnergyManager i_EnergyManager)
 {
     m_GarageInfo = new GarageInfo(i_OwnerName, i_OwnerPhone);
     m_Wheels     = new Wheel[i_NumberOfWheels];
     initWheels();
     m_EnergyManager = i_EnergyManager;
     m_LicenseNumber = i_LicenseNumber;
     m_EnergyManager = i_EnergyManager;
 }
예제 #3
0
        public override string GetInfo()
        {
            string msg = base.GetInfo();

            msg += string.Format(@"{0}
Cargo capacity: {1:f}
Have dangerus substence: {2}
", EnergyManager.GetInfo(), CargoCapacity, m_DangerusSubstence.ToString());

            return(msg);
        }