Java also has more than two years, today in the modification of the program inadvertently found that the Java interface inherited a number of interfaces, hey, really ashamed until now to understand.
So I hastened to write an example:
Package com.iman.wrms.t;
Public interface Ione {
public void one ();
}
Package com.iman.wrms.t;
Public interface Itwo {
public void Two ();
}
Package com.iman.wrms.t;
Public interface Ithree {
public void three ();
}
Package com.iman.wrms.t;
Public interface Itotal extends ione,itwo,ithree{
public void total ();
}
Package com.iman.wrms.t;
Import Com.iman.wrms.base.pojo.CoreObject;
/**
* @author: Jakemanse
* @time: 2008-1-2
* @description: interface supports multiple inheritance
* <p></p>
* <p></p>
*/
public class Exinterface extends Coreobject implements itotal{
public void Total () {
TODO auto-generated Method Stub
}
public void One () {
TODO auto-generated Method Stub
}
public void Two () {
TODO auto-generated Method Stub
}
public void Three () {
TODO auto-generated Method Stub
}
}