Results 1 to 2 of 2
  1. #1
    mew is offline Member
    Join Date
    Nov 2007
    Rep Power

    Default Multiple Inheritance

    I know that Multiple Inheritance is not allowed in Java. I come form a C++ background and there one can inherit from more than one class. I am not sure why in Java it is not allowed.

    Please write a brief note for my understanding.

  2. #2
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Newport, WA
    Rep Power


    Java attempts to be a true OOP (object oriented) language. Think about it, when implementing inheritance, you say Class1 extends Class2. That in oop means Class1 is Class2, because Class1 takes all of the characteristics of Class2. It wouldn't make since to say Class1 is Class2 AND Class3. Its like saying, that one thing, can in fact be two things.

Similar Threads

  1. multiple inheritance in java
    By pawanspace in forum New To Java
    Replies: 2
    Last Post: 12-31-2007, 04:08 AM
  2. Delegation vs inheritance
    By javaplus in forum Advanced Java
    Replies: 1
    Last Post: 12-07-2007, 09:07 PM
  3. Inheritance
    By mew in forum New To Java
    Replies: 1
    Last Post: 12-07-2007, 06:08 PM
  4. Multiple Inheritance in java
    By paty in forum New To Java
    Replies: 4
    Last Post: 08-02-2007, 02:25 PM
  5. Inheritance in GUI
    By Marty in forum SWT / JFace
    Replies: 2
    Last Post: 05-11-2007, 12:54 AM

Posting Permissions

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