How to achieve multiple inheretence in java.I need an
example. how we achieve.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java used for in technology?

459


Is string a primitive data type in java?

476


Why do we use j2ee?

473


What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?

517


What is jaxr provider?

519






What is container-managed sign-on?

540


What are the advanced technologies in java?

472


What is a gui in java?

474


What is j2ee tutorial?

498


What spring is in related to j2ee?

518


What do you understand by actionform?

478


What is tomcat in j2ee?

474


What are the types of j2ee clients?

500


how to run servlet program between two computer through internet ?

2537


What is ejb container provider?

456