public Car(string hand, double expense, double fuel, string fuelType, int horsePower) : base() { Hand = (DriveHand)(Enum.Parse(typeof(DriveHand), hand)); ExpensesPerMile = expense; FuelAmount = fuel; Engine = new EngineCharacters(fuelType, horsePower); }
public Car(int maxSpeed, string manufactureCountry, string hand, double expense, double fuel, string fuelType, int horsePower) : base(maxSpeed, manufactureCountry) { Hand = (DriveHand)(Enum.Parse(typeof(DriveHand), hand)); expensesPerMile = expense; fuelAmount = fuel; Engine = new EngineCharacters(fuelType, horsePower); }