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 r advatages of websphere? & how to deploy?
What is parseint?
What is ph and buffers?
What's the base class of all exception classes?
When would you use a static class?
Who found java?
What are accessor methods in java?
What are the advantages of exception handling in java?
What are different access specifiers in java?
What is java and its types?
What are the differences between wait() and sleep()?
What is the difference between normal report & matrix report?
Are global variables initialized to zero?
Which are the two subclasses under exception class?
Can a java program have 2 main methods?