How does the Singleton pattern work?
The Singleton pattern ensures that a class has only one instance by providing a global point of access to that instance, often through a static method.
What is the Observer pattern used for?
The Observer pattern is used to create a subscription mechanism, allowing multiple objects to listen and react to events or changes in another object.
How does the Factory pattern benefit object creation?
The Factory pattern benefits object creation by providing an interface for creating objects, allowing subclasses to alter the type of objects that will be created without specifying their exact class.