Esempio n. 1
0
        public static new List <string> GetAtributes()
        {
            List <string> getAtributesFuelVehicle = ElectricVehicle.GetAtributes();
            List <string> getAtributesUserCar     = Car.GetAtributes();

            foreach (string str in getAtributesUserCar)
            {
                getAtributesFuelVehicle.Add(str);
            }

            return(getAtributesFuelVehicle);
        }
Esempio n. 2
0
        internal static new List <string> GetAtributes()
        {
            List <string> atributesFuelVehicle = FuelVehicle.GetAtributes();
            List <string> atributesToUserCar   = Car.GetAtributes();

            foreach (string str in atributesToUserCar)
            {
                atributesFuelVehicle.Add(str);
            }

            atributesFuelVehicle.Add("IsCarryDangerousMaterial");
            atributesFuelVehicle.Add("CarryVolume");
            return(atributesFuelVehicle);
        }