Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Is there any difference between Containment and Composition?

Answers were Sorted based on User's Feedback



Is there any difference between Containment and Composition?..

Answer / 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

Is there any difference between Containment and Composition?..

Answer / 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

More UML Interview Questions

Why do we need UML diagrams?

0 Answers  


What are the roles played by packages in uml?

0 Answers  


What are the relationships used in UML?

0 Answers  


what is difference between Seqence and Collaboration diagrams with example?

2 Answers   TCS,


What are the operations on facets supported by uml?

0 Answers  


Explain about the difficulties of interchange format of UML?

0 Answers  


What are sequence diagrams in UML?

0 Answers  


How a uml use case is diagram different from a traditional flow chart?

0 Answers  


What is the difference between responsibility-driven and data-driven approaches?

0 Answers  


State some benefits of iterative development?

0 Answers  


How to identify the actors in a ucd?

0 Answers  


In the unified process, during which phases is requirement analysis mainly carried out?

4 Answers   Oracle,


Categories