[Design mode] policy mode-overall situation of encapsulated Behavior

Source: Internet
Author: User

OO Basics

Abstraction

Encapsulation

Polymorphism

Inheritance

 

OO principles

Encapsulation changes

Multi-Purpose Combination and less inheritance

For interface programming, not for implementation programming


OO Mode

Rule mode: defines algorithm families, which are encapsulated separately so that they can be replaced with each other. This mode allows algorithm changes to be independent of algorithm customers.


1. Knowing the OO basics is not enough for you to design a good OO system.

2. Good OO design must be reusable, extensible, and maintainable.

3. The model allows us to build a system with good OO design quality.

4. The pattern is considered as proven OO design experience.

5. The pattern is not code, but a general solution to the design problem. You can apply them to specific applications.

6. The pattern is not invented, but discovered.

7. Most models and principles focus on the subject of software changes.

8. Most of the modes allow local system changes to be independent of other components.

9. We often extract the changed part of the system and encapsulate it.

10. The mode allows developers to share languages and maximize the value of communication.

Design Mode: Rule mode-overall situation of encapsulated behavior

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.