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 a data structure java?
How do you define a set in java?
What is reflexive association?
What is ternary operator in java?
What are the differences between c++ and java?
How can you add and remove nodes in jtree?
Which method cannot be overridden in java?
Where is singleton pattern used?
What are the advantages of defining packages in java?
Java Compiler is stored in JDK, JRE or JVM?
What are scalar data types?
How do you calculate roots in java?
Does java isempty check for null?
What is balanced tree in java?
What is the java reflection api? Why it’s so important to have?