public Car(string make, string model, string color, int maxOccupancy, double fuelEff, Odometer kms, FuelTank liters) { Make = make; Model = model; Color = color; MaximumOccupancy = maxOccupancy; FuelEfficiency = fuelEff; Kms = kms; Liters = liters; }
public Car() { Make = "Chevy"; Model = "Camero"; Color = "Red"; MaximumOccupancy = 5; FuelEfficiency = 8.7; Kms = new Odometer(100); Liters = new FuelTank(50, 70); }