The intent of Factory Method is “Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.”

The intent of Abstract Factory is “Provide an interface for creating families of related or dependent objects without specifying their concrete classes.”

 

Advertisements