A collection of animal types: Cat, Dog, Horse, Cow, Bird
Using a Singleton Factory to initialise animals you are able to interact with the created animals.
Generates your Zoo of random amount between 10-20 animals.
RUN DEMO.JAVA TO START.
Name
makeSound()
move()
Enter type of animal to interact with all of them. Multiple choice is supported by separating types with a comma ,.
For interacting with all animals leave the input empty.
Example: cat cat,dog CAT, BIRD cow, HORSE
Currently supporting any kind of input, including duplicate types in input.
Developed using JDK 1.8.0_341