Home TechnologyProgrammingJava Subscribe to RSS

Is Multiple Inheritance Possible In Java Or Not?

Is multiple inheritance possible in java or not? If not, why? If yes, how?

Answer Question

1 Answer - Sort by: Date | Rating

    No, multiple inheritance is not possible in Java. The designers of the Java language had simplicity as one of their goals, and they felt that multiple inheritance was just too complicated.

    The closest you can get to multiple inheritance in Java is through multiple interfaces. A class can implement many interfaces. Doing this obliges the class to provide implementations for the interfaces' methods (unless they are declared abstract) but does not automatically provide any implementations in and of itself.
    1 0

    Paul_uk 

    answered 1 year ago

    Good answer :)
    Report
    Ravarat

    Ravarat

    commented 1 year 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