Question
Differentiate Aggregation and containment?

Answers

Aggregation is the relationship between the whole and a part. We can add/subtract some properties in the part (slave) side. It won't affect the whole part.
Best example is Car, which contains the wheels and some extra parts. Even though the parts are not there we can call it as car.
But, in the case of containment the whole part is affected when the part within that got affected. The human body is an apt example for this relationship. When the whole body dies the parts (heart etc) are died.   Your Comment






Search
Can you Answer!!
  • Q Where the data is extracted during init of delta and during delta updates ?
  • Q Three Gold (G) coins, three Silver (S) coins and three Copper (C) coins are arranged in a single row as follow: G S C G S C G S C • Only 2 adjacent unlike coins can be moved at any one time. • The moved coins must be in contact with at least one other coin in line. i.e. no pair of coins is to be moved and placed away from the remaining ones. • No coin pairs can be reversed i.e. a S-C combination must remain in that order in its new positionwhen it is moved. What is the minimum number of moves required to get all the coins in following order? C C C S S S G G G Show all moves.
  • Q Company profile of Neilsoft?
  • Q Whose agency is the government-
  • Q The song There is nothing like a dame appears in which musical
  • Q Explain about a class?
  • Q Why do I get 80010108 errors?
  • Q Explain how to use custom packages in GO language?
  • Q How is genetic engineering used to create bacteria capable of producing human insulin?
  • Q What is incoming mail server?
  • Q How to get updates from svn repo?