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
Which methods are used during serialization and deserialization process?
what are abstract functions?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What are the properties of thread?
Why we go for collections in java?
Is list ordered in java?
What are the java ide's? Explain
What is a parameter example?
How do you initialize an arraylist in java?
What is a short in java?
What is an image buffer?
Can we access the non-final local variable, inside the local inner class?
What is variable length arguments in java?
What is final class?
Using callable statement how can you pass out parameters, explain with example?