Programming Design Patterns

26 carte

26 carte

Ripassa
La ripetizione spaziata ti mostra ogni carta al momento ottimale per memorizzare a lungo termine, con revisioni sempre più distanziate.
Domanda
Builder Pattern
Risposta
Separates the construction of a complex object from its representation, allowing the same process to create different representations.
Domanda
Prototype Pattern
Risposta
Creates new objects by copying an existing object (the prototype), avoiding costly instantiation.
Domanda
Adapter Pattern
Risposta
Allows incompatible interfaces to work together by converting the interface of one class into another interface clients expect.
Domanda
Decorator Pattern
Risposta
Attaches new responsibilities to an object dynamically. Provides a flexible alternative to subclassing for extending functionality.
Domanda
Facade Pattern
Risposta
Provides a simplified interface to a complex system of classes, making it easier to use.
Domanda
Proxy Pattern
Risposta
Provides a surrogate or placeholder for another object to control access to it.
Domanda
Strategy Pattern
Risposta
Defines a family of algorithms, encapsulates each one, and makes them interchangeable.
Domanda
Command Pattern
Risposta
Encapsulates a request as an object, thereby allowing for parameterization of clients with different requests.
Domanda
Abstract Factory
Risposta
Provides an interface for creating families of related or dependent objects without specifying their concrete classes.
Domanda
Builder
Risposta
Separates the construction of a complex object from its representation, allowing the same process to create different representations.
Domanda
Factory Method
Risposta
Defines an interface for creating an object, but lets subclasses decide which class to instantiate. Subclasses defer instantiation.
Domanda
Facade
Risposta
Provides a unified interface to a set of interfaces in a subsystem, making the subsystem easier to use.
Domanda
Proxy
Risposta
Provides a surrogate or placeholder for another object to control access to it.
Domanda
Decorator
Risposta
Attaches new responsibilities to an object dynamically. Provides a flexible alternative to subclassing for extending functionality.
Domanda
Adapter
Risposta
Converts the interface of a class into another interface clients expect. It lets classes work together that couldn't otherwise because of incompatible interfaces.
Domanda
Template Method
Risposta
Defines the skeleton of an algorithm in an operation, deferring some steps to subclasses. It lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
Domanda
Command
Risposta
Encapsulates a request as an object, thereby allowing for parameterization of clients with different requests, queuing requests, or logging operations.
Domanda
Iterator
Risposta
Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
Domanda
Strategy Pattern
Risposta
Defines a family of algorithms, encapsulates each one, and makes them interchangeable. It lets the algorithm vary independently from clients that use it.
Domanda
Visitor Pattern
Risposta
Allows a client to visit elements of an object structure without exposing its concrete classes. It defines a new operation to be performed on the elements of an object structure without changing the element classes.
Domanda
Mediator Pattern
Risposta
Encapsulates how a set of objects interact. It promotes loose coupling by keeping objects from referring to each other explicitly.
Domanda
Factory Method
Risposta
Provides a way to produce objects in a class hierarchy when their exact type isn't known at compile time. It acts as a virtual constructor.
Domanda
Singleton Pattern
Risposta
Ensures a class only has one instance, and provides a global point of access to it.
Domanda
State Pattern
Risposta
Allows an object to alter its behavior when its internal state changes. The object will appear to change its class.
Domanda
Memento Pattern
Risposta
Provides a way to undo/redo operations by restoring an object to its previous state. It captures and externalizes an object's internal state without violating encapsulation.
Domanda
Observer Pattern
Risposta
Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

Inizia un quiz

Testa le tue conoscenze con domande interattive