Skip to content

ivelinakr/Zoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zoo

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.

Startup

Generates your Zoo of random amount between 10-20 animals.

RUN DEMO.JAVA TO START.

Animal properties

Name makeSound() move()

Input

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

Exceptions and validation

Currently supporting any kind of input, including duplicate types in input.

Version

Developed using JDK 1.8.0_341

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages