Refactoring Day 31 : Replace conditional with Polymorphism
ThelastdayofrefactoringcomesfromFowlersrefactoringcatalogandcanbefoundhere.ThisshowsoneofthefoundationsofObjectOrientedProgrammingwhichisPolymorphism.Theconcepthereisthatininstanceswhereyouaredoingche