Ask Question
23 March, 03:38

Which technique/concept can be use toimplement multiple inheritances

in java?

+5
Answers (1)
  1. 23 March, 04:24
    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?
Get an answer to your question ✅ “Which technique/concept can be use toimplement multiple inheritances in java? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers