Object-Oriented Design

Source: Internet
Author: User

Common Features of Excellent Software: low coupling and High Cohesion

Polymorphism: static polymorphism (function polymorphism, function overload), dynamic polymorphism (virtual function)

Basic object-oriented principles

Principle of opening/closing: a module should be open to expansion and should be closed for modification.

Principle of full replacement: The derived class should be able to completely replace the base class.

Dependency inversion principle: dependent on abstraction, not on concrete.

Non-circular dependency principle: there cannot be circular dependency between packages.

Only implement what you really need and do not implement what you think you need.

Do not repeat yourself: Any code appears only once.

Simplify the design.

Write code for humans, rather than for machines.

Object-Oriented development process:

Object-Oriented Analysis: Demand-Analysis Model

Architecture Analysis

Object-Oriented Design

Encoding

Test

Differences between frameworks and Class Libraries

Software life cycle model: waterfall model, iterative model (RUP, XP)

The most important object-oriented design principles and design concepts hidden behind the design model:

The most fundamental intention of the design pattern is to adapt to the demand changes. (I am talking about: there is no need to change, and the design model seems to have no value)

Programming for interfaces, rather than implementing programming.

Aggregation is preferred, rather than inheritance.

 

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.