: The classic Gang of Four (GoF) pattern where subclasses decide which class to instantiate by overriding a method.
: Not a formal "design pattern" per se, but a common practice where one class has a method that creates different objects based on input. Factory Pattern Software
The is a creational design pattern that provides an interface for creating objects in a superclass but allows subclasses to alter the type of objects that will be created . Essentially, it encapsulates the logic of object creation, so the client code doesn't need to know the exact class it's instantiating. Core Concepts : The classic Gang of Four (GoF) pattern