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
Can we access instance variables within static methods ?
Is ruby built on java?
What is main function purpose?
What is the purpose of the runtime class in java programming?
What is private static class in java?
What does string mean in java?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
What is a classloader in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
Why is a constant variable important?
What is difference between protected and private?
What are packages in java?
Explain an algorithm to find depth of a binary tree.
What is parse method?
Can the garbage collection be forced by any means?