Tag Archives: Factory Design Pattern

Factory Design Pattern

if we have a super class and n sub-classes, and based on data provided, we have to return the object of one of the sub-classes, we use a factory pattern. Example: Let’s suppose an application asks for entering the name … Continue reading

Posted in Design Patterns, java | Tagged | Leave a comment