Programming Design Patterns

26 tarjetas

26 tarjetas

Repasar
La repetición espaciada te muestra cada tarjeta en el momento óptimo para memorizar a largo plazo, con repasos cada vez más espaciados.
Pregunta
Builder Pattern
Respuesta
Separates the construction of a complex object from its representation, allowing the same process to create different representations.
Pregunta
Prototype Pattern
Respuesta
Creates new objects by copying an existing object (the prototype), avoiding costly instantiation.
Pregunta
Adapter Pattern
Respuesta
Allows incompatible interfaces to work together by converting the interface of one class into another interface clients expect.
Pregunta
Decorator Pattern
Respuesta
Attaches new responsibilities to an object dynamically. Provides a flexible alternative to subclassing for extending functionality.
Pregunta
Facade Pattern
Respuesta
Provides a simplified interface to a complex system of classes, making it easier to use.
Pregunta
Proxy Pattern
Respuesta
Provides a surrogate or placeholder for another object to control access to it.
Pregunta
Strategy Pattern
Respuesta
Defines a family of algorithms, encapsulates each one, and makes them interchangeable.
Pregunta
Command Pattern
Respuesta
Encapsulates a request as an object, thereby allowing for parameterization of clients with different requests.
Pregunta
Abstract Factory
Respuesta
Provides an interface for creating families of related or dependent objects without specifying their concrete classes.
Pregunta
Builder
Respuesta
Separates the construction of a complex object from its representation, allowing the same process to create different representations.
Pregunta
Factory Method
Respuesta
Defines an interface for creating an object, but lets subclasses decide which class to instantiate. Subclasses defer instantiation.
Pregunta
Facade
Respuesta
Provides a unified interface to a set of interfaces in a subsystem, making the subsystem easier to use.
Pregunta
Proxy
Respuesta
Provides a surrogate or placeholder for another object to control access to it.
Pregunta
Decorator
Respuesta
Attaches new responsibilities to an object dynamically. Provides a flexible alternative to subclassing for extending functionality.
Pregunta
Adapter
Respuesta
Converts the interface of a class into another interface clients expect. It lets classes work together that couldn't otherwise because of incompatible interfaces.
Pregunta
Template Method
Respuesta
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.
Pregunta
Command
Respuesta
Encapsulates a request as an object, thereby allowing for parameterization of clients with different requests, queuing requests, or logging operations.
Pregunta
Iterator
Respuesta
Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
Pregunta
Strategy Pattern
Respuesta
Defines a family of algorithms, encapsulates each one, and makes them interchangeable. It lets the algorithm vary independently from clients that use it.
Pregunta
Visitor Pattern
Respuesta
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.
Pregunta
Mediator Pattern
Respuesta
Encapsulates how a set of objects interact. It promotes loose coupling by keeping objects from referring to each other explicitly.
Pregunta
Factory Method
Respuesta
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.
Pregunta
Singleton Pattern
Respuesta
Ensures a class only has one instance, and provides a global point of access to it.
Pregunta
State Pattern
Respuesta
Allows an object to alter its behavior when its internal state changes. The object will appear to change its class.
Pregunta
Memento Pattern
Respuesta
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.
Pregunta
Observer Pattern
Respuesta
Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

Empezar cuestionario

Prueba tus conocimientos con preguntas interactivas