The variability of software

Source: Internet
Author: User

The variability of software is a concept in an inheritance system.

Variability and diversity are synonymous with polymorphism.

The semantics are: subclasses of the same parent class, and the structure and function (behavior) are different under the condition that the parent interface constraints are satisfied.

Representation is a multiplicity of subclasses.

1) The Sub-class (data) structure is different;

2) The functional implementation of subclasses is different.

Variability in encapsulation:

Solidify something that is immutable.

1) at an abstract class or base class level, the variability is cured with specific interface constraints and fixed dependencies.

2) at the subclass level, each mutable shape of the variability is encapsulated into a specific subclass, causing it to lose its variability.

If there is no variable encapsulation, there is no stable dependency between the high-level or the abstraction layer;

Each of these implementations directly takes on a dependency between the underlying layer or the abstraction layer, leading to confusion in the code.

The variability of software

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.