factory
A method or object whose job is to create other objects, hiding the details of how.
A factory encapsulates object creation behind a method or type; a builder assembles a complex object step by step before producing it.
Examples
ShippingRules.For(country)returns the rightIShippingRule, so callers never writenew UkShipping()themselves.
See also