Principles of Object-Oriented Design

Source: Internet
Author: User

Some principles of object-oriented design in Agile Software Development-principles, models, and practices:

Single responsibility principle:
For a class, there should be only one reason for its change

Principles of openness and closure:
Software entities (classes, modules, functions, etc.) should be extensible, but cannot be modified.

Liskov replacement principle
The child type must be able to replace its base type.

Dependency inversion principle
A. High-level modules should not depend on low-level modules. Both of them should depend on abstraction.
B. abstraction should not depend on details, but on abstraction.

Interface isolation principle:
Customers should not be forced to rely on methods they do not need.

EnglishArticleYou can find it on the objectmentor website.
Chinese files can be found in the C ++ view site's e-Magazine.

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.