Is there any difference between Containment and Composition?

Answer Posted / pramod

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 amount of instances
of the composited data type.

Is This Answer Correct ?    6 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mean by a component?

606


What is modeling? What are the advantages of creating a model?

568


What shall I go for Package Diagram?

2421


What is crc card?

638


What is known as static diagrams?

510






How are the diagrams divided in UML?

574


What is a uml package?

646


Detail the meaning of association?

582


How does the rule chaining concept works in uml?

539


Detail whether UML can be used as a programming language?

520


What is behavioral diagram in UML?

642


What is Activity diagram in UML?

611


What are the three types of modeling in UML?

603


Can you tell us a few advantages of creating a model?

560


What is a uml use case diagram (ucd), and when should you use it?

556