Results 1 to 5 of 5
  1. #1
    Bhuvan is offline Member
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    0

    Default Inheritance and relationships

    What type of relationships does inheritance support?does it support one-one or one-many relationship and why??

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    Hi. in Java can not use multiple inheritance, but you can use interface.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Bhuvan is offline Member
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    0

    Default

    But what about the mapped relationships?????

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    Do you asked about Java Code or Java and DataBase? Can you more describe about your question?
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default

    one-to-one and one-to-many are relational concepts, associated often with databases.
    They aren't anything to do with OO terms like inheritance.

Similar Threads

  1. Replies: 5
    Last Post: 02-25-2010, 02:06 PM
  2. Replies: 3
    Last Post: 10-08-2009, 10:27 PM
  3. Inheritance example
    By kris4u4ever in forum New To Java
    Replies: 3
    Last Post: 03-21-2009, 02:53 PM
  4. inheritance
    By itaipee in forum New To Java
    Replies: 6
    Last Post: 01-20-2009, 08:18 PM
  5. Inheritance in GUI
    By Marty in forum SWT / JFace
    Replies: 2
    Last Post: 05-11-2007, 12:54 AM

Tags for this Thread

Posting Permissions

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