Description
Let get start with design patten !
Factory Pattern.
If you have no idea Factory Pattern is
Check here
package at
com.ordestiny.tdd.designpattern.factorypattern
Given A factory Object(AnimalFactory)
And an animal Enum (BIRD, TIGER, CHICKEN, MONKEY, ....so on)
And corresponding Animal Object (should extend from Animal)
When ask factory to create BIRD
Expect Animal(Bird) return
And it barks like (?)
When ask factory to create MONKEY
Expect Animal(Monkey) return
And it barks like (?)
When ask factory to create null(not exist in enum)
Expect exception throw
(you can imagine more if you like
Additional context
Add any other context, links references or screenshots about the feature request here.
Important Checklist