搞Java也有两个年头多了 ,今天在修改程序时无意中发现,Java接口中继承了多个接口,哎,真是惭愧直到现在才搞明白。
于是就赶紧写了一个例子:
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 : 接口支持多继承
* <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
}
}