What is multiple inheritance & can we implement it in java?
Answer Posted / lavanya
Java Does Support Multiple inheritance through the usage of
intrface concept. multiple inheritence is one class
acquiring the features of more than one class.
Java can extend one class but can implement more than one
interface.
intreface is a class whose methods are declared but
functionality not defined. The implementing class has to
define that functionality.
Through the use of interfaces we can avoid the confusion of
which class to use in case two extended classes have same method
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
what is the difference between thread and runnable types? : Java thread
How do you decide when to use arraylist and linkedlist?
What does flag mean in java?
What is an example of character?
Does java return by reference?
Can a class be final?
Does java have extension methods?
What a static class can contains?
Where we write javascript code in html page?
What is included in core java?
Where and how can you use a private constructor?
why using interface interface ?
What is this keyword in java?
How many arguments can a method have java?
What is a bubble sort in java?