Design Pattern Learning (1) -- Design Pattern list

Source: Internet
Author: User

Creational patterns
Abstract Factory Creates an instance of several families of Classes
Builder Separates Object Construction from its representation
Factory method Creates an instance of several Derived classes
Prototype A fully initialized instance to be copied or cloned
Singleton A Class of which only a single instance can exist

Structural Patterns
Adapter Match interfaces of different classes
Bridge Separates an object from its interface from its implementation
Composite A tree structure of simple and composite objects
Decorator Add responsibilities to objects dynamically
Facade A single class that represents an entire Subsystem
Flyweight A fine-grained instance used for efficient sharing
Proxy An object representing another object

Behavioral patterns
Chain of resp. A way of passing a request between a chain of Objects
Command Encapsulate a command request as an object
Interpreter A way to include language elements in a program
Iterator Sequentially access the elements of a collection
Mediator Defines simplified communication between classes
Memento Capture and restore an object's internal state
Observer A way of changing Ying change to a number of classes
State Alter an object's behavior when its State Changes
Strategy Encapsulates an algorithm inside a class
Template Method Defer the exact steps of an algorithm to a subclass
Visitor Defines a new operation to a class without change

List several references:
Codeguru _ patterns
Design Patterns in. net
Design Patterns in C # And. net
The design patterns Java companion
Tutorials about patterns

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.