edited by
2,163 views
1 votes
1 votes

Which of the following is a correct statement ?

  1. Composition is a strong type of association between two classes with full ownership.
  2. Composition is a strong type of association between two classes with partial ownership.
  3. Composition is a weak type of association between two classes with partial ownership.
  4. Composition is a weak type of association between two classes with strong ownership.
edited by

1 Answer

0 votes
0 votes

When an object contains the other object, if the contained object cannot exist without the existence of container object, then it is called composition

it is strong and has full owner relationship

Answer must be A

Related questions

1.1k
views
1 answers
1 votes
makhdoom ghaya asked Oct 1, 2016
1,116 views
Constructors have _____ return type.voidcharintno
1.6k
views
1 answers
0 votes
makhdoom ghaya asked Sep 24, 2016
1,573 views
A function template in C++ provides _____ level of generalization.$4$ $3$ $2$1$
3.7k
views
1 answers
0 votes
makhdoom ghaya asked Sep 24, 2016
3,673 views
If a function is friend of a class, which one of the following is wrong ?A function can only be declared a friend by a class itself.Friend functions are not ... a class.It can have access to all members of the class, even private ones.
2.3k
views
6 answers
0 votes
go_editor asked Mar 24, 2020
2,323 views
Consider the following JAVA program:public class First { public static int CBSE (int x) { if (x < 100)x = CBSE (x+10); return (x-1); } ... } }What does this program print?$59$ $95$ $69$ $99$