What is multiple inheritance & can we implement it in java?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / arnab
When a particular class has properties of more than one
class it is called multiple inheritance.
Since c++ like implementation of multiple inheritance programs
is difficult, and adds complexity to the language, java
provides an alternative approach to support the concept of
multiple inheritance.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / madhan kumar.s
multiple inheritance means more base class to one derived
class.java does not support multiple inheritance
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / siva
Multiple inheritance means it have more than one base class
and one derived..
but multiple inheritance does not support multiple
inheritance......
We r implementing multiple inheritance with the help of
interface...
and we not able to create object for interface class
directly but we can create indirectly
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / arnab
When a particular class has properties of more than one
class it is called multiple inheritance.
Since c++ like implementation of multiple inheritance programs
is difficult, and adds complexity to the language, java
provides an alternative approach known as interface to
support the concept of multiple inheritance.
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / jyoti
multiple inheritance means for onr sub class there are more
than one base class.
that means derive class inherits from more than one class
simultaneaously.
no java does not support multiple inheitance.
Is This Answer Correct ? | 2 Yes | 5 No |
What is the difference between class forname and new?
Explain how to force the garbage collection in java.
What is an abstract class and what is it’s purpose?
int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c;
What is abstract class? Explain
Write a program to print fibonacci series up to count 10.
Explain the available thread states in a high-level?
Can you use abstract and final both with a method?
What is the purpose of checked and unchecked exceptions in JAVA?
Define a java class.
What is the escape character in java?
Why you should not use singleton?