JAVA接口的使用
package basic.day02; public interface People { String name(String name);//姓名 char xingbie(char a);//性别 long tel(long t);//电话 double shengao(double shengao);//身高 } interface OnePeople extends People{ long qq(long num);//QQ号码 long menoy(long meoy);//财产 } interface TwoPeople extends People{ boolean car();//是否有车 boolean house();//是否有房 int nianling();//年龄多大 }