Example #1
0
 // 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());
     }
 }
Example #2
0
 // Add the given car to the car pool
 public void AddCarToPool(Car aCar)
 {
     carList.Add(aCar.GetLicensePlate(), aCar);
 }
Example #3
0
 // Add the given car to the car pool
 public void AddCarToPool(Car aCar)
 {
     carList.Add(aCar.GetLicensePlate(), aCar);
 }
Example #4
0
 // Add the given car to the car pool
 public void AddCarToPool(Car aCar)
 {
     carList.Add(aCar.GetLicensePlate(), aCar);
     // Complete this method
 }