![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Collection Classes - slide 11 : 36 |
An AnimalFarm class with auto insertion of animals of opposite sex
An AnimalFarm class in which removal and clearing is denied
An AnimalFarm class that extends Collection<Animal> with GetGroup
![]() | The class AnimalFarm - a subclass of Collection<Animal>. |
![]() | A sample client of AnimalFarm. |
![]() | Output from sample client of AnimalFarm. |