1.今天学习了接口浅议
public class XingXiSB implements cunBu,school,work{
public String getName()
{
return name;
}
public int getAge()
{
return age;
}
public String getXl()
{
return xl;
}
public double getX()
{
return nx - 10000;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
XingXiSB x = new XingXiSB();
System.out.println("姓名: " + x.getName());
System.out.println("年龄: " + x.getAge());
System.out.println("学历: " + x.getXl());
System.out.println("年薪: " + x.getX());
}
}
interface cunBu{
String name = "李东";
int age = 18;
public abstract String getName();
public abstract int getAge();
}
interface school{
String xl = "硕士学位";
public abstract String getXl();
}
interface work{
String workname = "大数据公司";
String zw = "程序员";
double nx = 20000;
public abstract double getX();
}
2.没有遇到问题
3.明天打算学习
构建javaweb应用