Ask Question

Which technique/concept can be use toimplement multiple inheritances

in java?

+1
Answers (1)
  1. 6 September, 20:16
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers