Created
May 30, 2021 13:30
-
-
Save ssukhpinder/d3d92da9552c1d791800f97b9c81eb7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Car : IVehicleAggregate | |
{ | |
private List<string> _cars; | |
public Car() | |
{ | |
_cars = new List<string> { "Car 1", "Car 2", "Car 3" }; | |
} | |
public IVehicleIterator CreateIterator() | |
{ | |
return new CarIterator(_cars); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment