answersLogoWhite

0

Composition relates to the way in which complex objects can be constructed from smaller, simpler objects. We refer to this as object composition. While simple objects typically contain one or more embedded primitive member attributes, such as int, char, float and so on, composite objects typically embed other objects (often in addition to other primitive attributes), and each of those objects may themselves be composite or they may be simple. This allows highly complex object models to be constructed such that each object within a composition is self-contained and ultimately operates no differently to how it would operate if it were a standalone object. The composite object effectively acts as an object coordinator, calling specific methods upon the simpler objects as required. In other words, the actual workload is delegated to the object or objects that are actually responsible for that workload, and they themselves may delegate to simpler objects, and they to theirs. The composite object's only real workload is in processing any relevant results of those delegations. In other words, a simple function call through a member method of the composite object can produce a cascade of member methods within the embedded objects, each of which works completely independently, but the results of which can be combined by the containing object in order to produce highly complex behaviour.

By way of an example, a motor car is built up from thousands of individual but ultimately simple components, such as nuts and bolts, switches, cogs, levers, wheels and so on. Some of those simple objects are combined to produce more complex objects, such as an engine, a transmission unit, a steering mechanism, door locks, and so, on. Ultimately, they all combine to produce a car. But no matter how complex a composite object is, the behaviour of their embedded objects does not change: a nut and bolt is still a nut and bolt whether it is holding a door hinge onto a chassis, or a suspension strut to a wheel hub. In other words, the job of physically holding one component to another is delegated to the nut and bolt, but is coordinated according to the object that embeds the nut and bolt, while that object is coordinated and delegated to by the object that contains it, and so on.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Explain what the term data means and give an example?

shiting it


What is the term for the sum of a number and all its descending numbers for example 10 plus 9 plus 8 plus 7 etc?

i dont know but the term for the number times the numbers below it is factorial and is represented by an ! for example: 5!=5x4x3x2x1=120


How do you use the term physical features in a sentence?

Example sentence - His physical features were difficult to explain.


Which term refers to the way a composition is constructed?

The term that refers to a way a composition is constructed is "Form".


Is it possible to find three solutions of the equation x3 plus 2x2 plus 3x plus 6 equals 0 Explain why or why not?

The variable term, X^3, is a third order polynomial term and will render three solutions, though one of those may be zero.


Can you Define the term symphony and explain its internal sectional development?

What is the internal sectional development of the term symphony


Explain the method of translation of historical institutional term?

"Explain the method of translation of historical institutional term?" Institutional term and National institutional term? "Explain the method of translation of historical institutional term?"


What is a term in a math expession?

A "term" is each of the parts of the expression that are combined with plus or minus symbols. For example, in x2 + xy + y2, you have three terms; one before the first plus symbol; one between the two plus symbols; one after the second plus symbol.


In the Example x² plus 5x plus 50 which is the quadratic term?

It can't be expressed in quadratic terms because its discriminant is less than zero.


How do you explain the term broard field curriculum?

explain the term broard field curriculum


What is the term for matter having indefinite composition and variable properties?

The term for matter having indefinite composition and variable properties is a mixture. Mixtures can be homogeneous (uniform composition) or heterogeneous (non-uniform composition).


Explain the term element?

i think it means sweetsIt is an atom. For example: Helium (2)atom is your mam's skin your mamu fat