Answer Posted / tulasi prasad
java does not support multiple inheritance directly because
if we r deriving a sub class from 2 super classes which are
as follows
class A
{
void meth()
{
// substraction;
}
}
class B
{
void meth()
{
// Addition;
}
}
class C extends A,B
{
meth()<--- system get into confusion whether its add
or substarct.
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the role of the java.rmi.naming class?
What is class??
How do I get the | symbol on my keyboard?
What is the use of runnable interface?
Where import statement is used in a java program?
Is object a data type?
Should database connections be singleton?
what is the volatile modifier for? : Java thread
How many bytes is a url?
Can we store variables in local blocks?
What is the use of http-tunneling in rmi?
What is integer valueof?
What is the statements?
If a method is declared as protected, where may the method be accessed in java programming?
Is a class an object?