Design mode 1

Source: Internet
Author: User

Static Factory mode, factory method mode, abstract Factory mode

The factory method improves the open-close principle that static plants do not meet when adding new products, while the abstract factory satisfies the situation when the product is a product family.

Bridging mode, Command mode

Bridging mode separates the abstraction from the implementation, so that they can be independent of each other

The execution of a command in command mode is performed by the command performer as the Command property, and does not have to be returned, as long as the command is executed.

The function of a class of bridging mode requires the properties of this class to be completed, some are a property to be completed, and some require multiple attributes to be completed together.

Design mode 1

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.