Home TechnologyProgrammingJava Subscribe to RSS

Why Isn't Multiple Inheritance Used In Java?

Answer Question

3 Answers - Sort by: Date | Rating

    This decision was made to improve the maintainability of the source code.
    0 0

    Scrut  

    answered 3 years ago

    Actually java uses multiple inheritance by using interfaces. It is not uses abstract classes for multiple inheritance because it has to sacrifice Garbage collector of java and Dynamic
    Instance allocation
    Report
    Guest

    Guest

    commented 2 years ago

      This is to avoid the possibility of naming collision as it occurs in C++ because of using the multiple inheritence.
      0 0

      Smrks  

      answered 3 years ago

        Multiple inheritance can be implemented by multi level inheritance itself!! So,there z no need f multiple inheritance at all.
        0 0

        Nlgopi  

        answered 7 months ago

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International