// Print out all cars in the pool // (leave this method as it is) public void PrintAllCarsInPool() { foreach (KeyValuePair <String, Car> kvp in carList) { Car aCar = kvp.Value; Console.WriteLine("{0} is a {1} {2}", aCar.GetLicensePlate(), aCar.GetBrand(), aCar.GetModel()); } }
// Add the given car to the car pool public void AddCarToPool(Car aCar) { carList.Add(aCar.GetLicensePlate(), aCar); }
// Add the given car to the car pool public void AddCarToPool(Car aCar) { carList.Add(aCar.GetLicensePlate(), aCar); // Complete this method }