Created
May 30, 2021 13:30
-
-
Save ssukhpinder/84c9fea82b711010cb0ddd05b2bd7b30 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 Motercycle : IVehicleAggregate | |
{ | |
private string[] _motercycles; | |
public Motercycle() | |
{ | |
_motercycles = new[] { "Bike 1", "Bike 2", "Bike 3" }; | |
} | |
public IVehicleIterator CreateIterator() | |
{ | |
return new MotercycleIterator(_motercycles); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment