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?

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

Why do we need UML diagrams?

964


Why analysis is a major part in object designing?

1076


What is state machine diagram in UML?

1125


What are the roles played by packages in uml?

893


Explain the different elements of a Use Case?

1005


What is a communication diagram in UML?

1114


Explain the types of diagrams in UML.

1026


What are the operations on facets supported by uml?

1045


Can you give us a brief defining the architecture?

938


What do you mean by focus of control?

1041


What shall I go for Package Diagram?

2933


What are the different approaches to store knowledge?

898


Detail whether UML can be used as a programming language?

873


Explain about realization and its relationships?

957


Does UML guarantee project success?

2156