as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
name the software engineering design pattern and give the definition of it.
user
factory method pattern: 
the factory method pattern is a creational design pattern which provides an interface for creating objects in a superclass, but allows subclasses to decide which class to instantiate. it lets a class defer instantiation to subclasses.
assistant