Which interface do I have to implement for an item collection
Class: Episode with properties string name, uint orderNumber and timespan
length.
Class: TVserie with episodes[] property.
How do I make something like this:
TVseries breakingBad = new TVseries();
breakingBad.episodes.add(511, "Confessions", 30.00);
Which Interface provides the 'add' and other collection functionality to
my custom classes?
No comments:
Post a Comment