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 are various kinds of invariants and rulesets used in uml?

488


What is behavioral diagram in UML?

635


What is unified modeling language (uml)?

505


How do we represent private, public and protected in class diagrams?

491


Why are attributes used in uml?

593






What is deployment diagram in UML?

575


What is an object lifeline?

546


What are boundary, entity and control classes?

564


What is static modeling and dynamic modeling in UML?

548


Explain the types of diagrams in UML.

584


What is contract?

594


Given the requirements, how will you go about designing them? How will you convert business info to technical info?

2233


What is an activity diagram?

598


What is UML diagram?

543


What are the different views that have to be considered before the buildup of an object oriented software system?

643