Ejemplo n.º 1
0
        public override string GetVehicleParamsNeeds()
        {
            string whatINeedMsg, wheelsNeedsMsg, energyNeedsMsg;

            energyNeedsMsg = EnergySource.GetEnergySourceParamsNeeds();
            wheelsNeedsMsg = "12 wheels information: Model name, current amount of air";

            whatINeedMsg = string.Format(
                @"Is carrying dangerous materials (True/False)
Volume of cargo
{0}
{1}",
                energyNeedsMsg,
                wheelsNeedsMsg);

            return(whatINeedMsg);
        }
Ejemplo n.º 2
0
        public override string GetVehicleParamsNeeds()
        {
            string whatINeedMsg, wheelsNeedsMsg, energyNeedsMsg;

            energyNeedsMsg = EnergySource.GetEnergySourceParamsNeeds();
            wheelsNeedsMsg = "2 wheels information: Model name, current amount of air";

            whatINeedMsg = string.Format(
                @"License type
Engine capacity
{0}
{1}",
                energyNeedsMsg,
                wheelsNeedsMsg);

            return(whatINeedMsg);
        }
Ejemplo n.º 3
0
        public override string GetVehicleParamsNeeds()
        {
            string whatINeedMsg, wheelsNeedsMsg, energyNeedsMsg;

            energyNeedsMsg = EnergySource.GetEnergySourceParamsNeeds();
            wheelsNeedsMsg = "4 wheels information: Model name, current amount of air";

            whatINeedMsg = string.Format(
                @"Car color
Num of doors
{0}
{1}",
                energyNeedsMsg,
                wheelsNeedsMsg);

            return(whatINeedMsg);
        }