Is there any difference between Containment and Composition?

Answer Posted / shilpa

object composition is a way to combine simple objects or
data types into more complex ones. Compositions are a
critical building block of many basic data structures,
including the tagged union, the linked list, and the binary
tree, as well as the object used in object-oriented
programming.
Composited (composed) objects are often referred to as
having a "has a" relationship.
Composition that is used to store several instances of the
composited data type is referred to as containment.
Examples of such containers are arrays, linked lists,
binary trees and associative arrays.
In UML, containment is depicted with a multiplicity of 1 or
0..n (depending on the issue of ownership), indicating that
the data type is composed of an unknown number of instances
of the composited data type.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of operational assertions in uml?

663


What is a pattern?

544


What are the types of UML diagrams?

550


Name 9 modeling diagrams that are frequently used?

521


Explain about package diagram?

550






Explain about the static structural view presented by UML?

507


Which software is used for UML diagrams?

572


Explain about dynamical behavior view?

583


Is use case diagram static or dynamic?

575


What is known as static diagrams?

502


Mention the different kinds of modeling diagrams used?

553


Explain about the methods in UML?

614


What is sdlc (software development life cycle)?

555


What are the three different views of a system model?

528


What is crc card?

630