Factory Method Design Pattern

From JholJhapata
Revision as of 13:30, 8 December 2019 by Admin (talk | contribs) (Created page with "Factory Pattern or Factory Method Pattern is a creational design pattern that provides an interface or abstract class for creating objects in a superclass, but allows subclass...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Factory Pattern or Factory Method Pattern is a creational design pattern that provides an interface or abstract class for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created. In other words, subclasses are responsible to create the instance of the class.