Shared Flashcard Set

Details

Design Patterns
Patterns commonly used in Software Engineering
4
Computer Science
Professional
12/29/2010

Additional Computer Science Flashcards

 


 

Cards

Term
Singleton
Definition
Ensure a class has only one instance, and provide a global point of access to it.
Term
Adapter
Definition
Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
Term
Decorator
Definition
Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.
Term
Visitor
Definition
Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.
Supporting users have an ad free experience!