Is Factory method more suitable for frameworks and Abstract facory for Library?
Both Abstract Factory and Factory method patterns are creational design patterns which solves the object creation issues in different scenarios. As per GOF Factory Method pattern Define an interface for creating an object, but let the subclasses decide which class to instantiate. Factory method lets a class defer instantiation to subclass. My Understanding : Motive of the Client is to get a method present in the base Factory class get executed which is dependent upon an object whose concrete class is not known now (In such a case, either during providing the software to client, it will be