why java does not support multiple inheritance
Answer Posted / rajib
class ConcreteClaNm extends SuperClass{}
or
class ConcreteClaNm extends IncompleteClass{}
hense java does not support multiple inheritance.
or
class IncompleteClass extends ConcreteClaNm{}
But
class ConcreteClaNm implements interface1,interface2....
{
}
or
class IncompleteClass implements interface1,interface2....
{}
public interface InterName extends InterName1,InterName2...
{}
We achive single inheritance and multiple inheritance like this.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is the purpose of nested class in java?
You're given a Boolean 2D matrix, can you find the number of islands?
Explain the scope of a variable.
What is the protected method modifier?
Is boolean a wrapper class in java?
What is a void in java?
What is length in java?
Is string a data type in java?
what is instanceof operator used in java?
Does variable declaration allocate memory?
Is arraylist ordered in java?
what is mena by object block any what is the use of that
What are the differences between c++ and java?
Can we create object of inner class in java?
How can we make string upper case or lower case?