Forum Stats

  • 3,816,091 Users
  • 2,259,138 Discussions
  • 7,893,390 Comments

Discussions

Question on Composition relationship.

user12203354
user12203354 Member Posts: 14
Which is true about composition relationship
1. it can be one to many
2. it can never be one to many
3.it is always one to many
4.it is used to show exclusive ownership
5.never used when an object is owned by exactly one other object.

i think answer shud be 1.
But its answer is 1 and 4.(as per the answers given in the book i am referring to)

why 4 is the answer.I know composition is the relation which says one can not exist without other....then how is it used to show exclusive relationships.
pls clarify...

Answers

  • >
    I know composition is the relation which says one can not exist without other
    >
    What book? What does that book say about exclusivity?

    It is exclusive because with composition the containing object is responsible for the lifetime of the 'contained' object. It is responsible for both the creation and destruction of of the 'contained' object. It OWNS the contained object. And that ownership is exclusive.
  • Thanks for clarification,
    I was referring to the questions and answers in one PDF file...
    i got your point now.It makes sense...

    thanks
  • I think this site is about insulting .....
    when someone has doubts, he relies on this site to clear the doubts....but the replis one get are disgusting....
    anyways....since i can not do anything about it....just telling my thoughts....
    deleting the post and locking the post is not correct..
  • EJP
    EJP Member Posts: 32,920 Gold Crown
    I think this site is about insulting .....
    I can't see where anyone has insulted you.
    when someone has doubts, he relies on this site to clear the doubts....
    I can't see anywhere where you expressed any 'doubts' either.
    but the replies one get are disgusting....
    Nor do I see any 'disgusting' replies.

    However if you wish to persist in these claims, you should do so here: 2446570.
  • user12203354
    user12203354 Member Posts: 14
    I am not talking about this thread...I am talking about another thread where i asked some doubts i had and i got the below reply....Could not reply on that particular thread as it was locked by admin.....
    thread link is 2461509


    ****
    Choose none. This is not a homework answering site for your multiple-choice questions, that are only designed to elicit whether you have done the study they are about. Future posts of this nature will be deleted without notice. Locking this thread.
    *****
  • gimbal2
    gimbal2 Member Posts: 11,949 Gold Trophy
    user12203354 wrote:
    I think this site is about insulting .....
    It is! People keep insulting their own intelligence with layer upon layer of intense naiveté.
  • EJP
    EJP Member Posts: 32,920 Gold Crown
    edited Nov 2, 2012 8:57PM
    I am not talking about this thread ...
    As nobody said you were, the remainder seems pointless to me.

    Further, what you quote is neither 'insulting' or 'disgusting'. If you wish to continue to disagree, I have already advised where you should take up your complaint.

    Locking this thread.
This discussion has been closed.