Ask Question
10 March, 19:35

Which technique/concept can be use toimplement multiple inheritances

in java?

+3
Answers (1)
  1. 10 March, 20:23
    0
    Interface

    Explanation:

    Java does not supports multiple inheritance by class, but we can implement multiple inharitacnce in java using interface, with interface we uses implements keyword.

    Example-

    Declare interface like below code -

    interface parent{

    }

    and use in child class like below code -

    class Child1 implements interface{

    }

    class Child2 implements interface{

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which technique/concept can be use toimplement multiple inheritances in java? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers