public Auto(string _brand, string _model, Colors _color, Fuel_types _fuel, uint _max_speed, double _horsepowers, double _motor_capacity) { this.brand = _brand; this.model = _model; this.color = _color; this.vin = Guid.NewGuid(); this.fuel = _fuel; this.max_speed = _max_speed; this.horsepower = _horsepowers; this.motor_capacity = _motor_capacity; }
public Truck( string _brand, string _model, Colors _color, Fuel_types _fuel, uint _max_speed, double _horsepowers, double _motor_capacity, Transmission_brand transmission_brand) : base(_brand, _model, _color, _fuel, _max_speed, _horsepowers, _motor_capacity) { this.transmission_brand = transmission_brand; }
public Car( string _brand, string _model, Colors _color, Fuel_types _fuel, uint _max_speed, double _horsepowers, double _motor_capacity, Motor_brand _motor_brand) : base(_brand, _model, _color, _fuel, _max_speed, _horsepowers, _motor_capacity) { this.motor_brand = _motor_brand; }
public static double check_ecr(Fuel_types fuelType) { switch (fuelType) { case Fuel_types.gas: { return(ecr_for_gas); } case Fuel_types.petrol: { return(ecr_for_petrol); } } return(0); }
public Sportcar(string _brand, string _model, Colors _color, Fuel_types _fuel, uint _max_speed, double _horsepowers, double _motor_capacity, bool _nytro) : base(_brand, _model, _color, _fuel, _max_speed, _horsepowers, _motor_capacity) { this.nytro = _nytro; }