Exploring Basic Concepts
Factory method design pattern is a type of creational pattern. This pattern controls the creation of…