Results 1 to 3 of 3
  1. #1
    RajShri is offline Member
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

    Default class relationship

    Hi All,

    Can anyone explain the answer for the following question:

    Question:Which man class properly represents the relationship "Man has a bestfriend who is a dog".

    The Answer is: class Man {private Dog bestfriend;}

    Thankq

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    The answer is dictated by this statement:
    "Man has a bestfriend who is a dog"
    has - a: contains an object
    is - a: is an object of.

  3. #3
    RajShri is offline Member
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 12-26-2009, 10:55 PM
  2. How to update data for a JPA many-to-many relationship?
    By abhijit.sarkar in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 11-04-2008, 08:48 AM
  3. Relationship Manager (HR, Marketing) - Mindlance
    By mindlance777 in forum Reviews / Advertising
    Replies: 1
    Last Post: 10-31-2008, 04:38 AM
  4. What is this Object relationship?
    By SirRawlins in forum New To Java
    Replies: 3
    Last Post: 12-14-2007, 03:17 PM
  5. problem with ejb 3.0 entity beans with manyToMany relationship
    By makcro in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 07-26-2007, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •