Java Interface support for multiple inheritance __java

Source: Internet
Author: User
Tags stub

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

}

}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.