How to achieve multiple inheretence in java.I need an
example. how we achieve.
Answers were Sorted based on User's Feedback
Answer / srikanth jakka
The mechanism of inheriting the features of more than one
base class into a single class is known as multiple
inheritance. Java does not support multiple inheritance but
the multiple inheritance can be achieved by using the
interface.In Java Multiple Inheritance can be achieved
through use of Interfaces by implementing more than one
interfaces in a class.
| Is This Answer Correct ? | 22 Yes | 0 No |
Answer / sk.bilal ahmed
muliple inheritance is done with the help of interfaces
Multiple Inheritance
Class C extends A implements B
eg.,
package com.ack.learning;
import java.io.Serializable;
import java.rmi.Remote;
import java.util.Vector;
public class MultipleInheritance extends Vector
implements Remote, Serializable
{
public static void main( String[] args )
{
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
What does resource adapt module contain?
what is transaction?what are the differenr type of transactions
What is the name of java compiler?
Define authorization constraint?
Why java is called robust and secure?
What do you understand by business logic?
What is main method in java?
What is iso 3166?
Is java is a technology?
How long does it take to master java?
What is authorization constraint?
What is a jbutton in java?