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 |
is it possible to create single instance of java class per session in web application
What is cmp in j2ee?
What does enterprise javabeans module contain?
Is java part of oracle?
What is a j2ee container?
Define hashtable in j2ee?
How will you explain load() and get() methods?
J2ee is a container centric architecture. Explain.
What is web container in j2ee?
What is jradiobutton in java?
How is java development environment setup?
Where is java used?