Polymerization and combination

xiaoxiao2021-03-06  78

AGGREGATION:

This is a relatively reluctant time. For example: computer and his peripheral equipment is an example.

It used to represent relationships or overall relationships.

Composition:

This is a very strong relationship between objects, give an example, the relationship between the trees and the leaves.

In one synthesis, part is the same as the overall life cycle. A synthetic new object completely has a composition

Partial dominance. Includes their creation and destruction.

Finally, summarize:

polymerization:

The polymer is sometimes not dependent on the part, and sometimes it can be partially available independently of the polymerization. If some is lost, the aggregation gives a unfinished feeling of ownership can be shared by several aggregates, such as printers.

synthesis:

Some moments can only belong to one of a constituent composition. All parts are responsible for processing it - this means that they can relax these responsibilities if they are responsible for their creation and destruction. If the part of the responsibility is taken by other objects. . If it is destroyed, it must destroy all parts, or transfer the rights responsible for their rights to other objects.

转载请注明原文地址:https://www.9cbs.com/read-120845.html

New Post(0)