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 difference between private & public & friendly classes?
Define the term string pool?
Write a code to show a static variable?
Can we declare array without size in java?
How do you do absolute value in java?
What does || mean in code?
Can we declare an array without size in java?
Explain listiterator and methods in listiterator?
Define array. Tell me about 2-D array.
What is the difference between this() and super() in java?
Why is a constant variable important?
What are the advantages and disadvantages of reference counting in garbage collection?
What is the java idl system?
What is enhanced loop in java?
What is the difference between object oriented programming language and object based programming language?