class XinXi
{
private String name;
private String id;
private double mony;
Employee(String name,String id,double mony)
{
this.name = name;
this.id = id;
this.mony = mony;
}
}
class YuanGong extends XinXi
{
YuanGong(String name,String id,double mony)
{
super(name,id,mony);
}
}
class JingLi extends XinXi
{
private int dollar;
JingLi(String name,String id,double mony,int dollar)
{
super(name,id,mony);
this.dollar = dollar;
}
}
class DemoTo
{
public static void main(String[] args)
{
System.out.println("Hello Work");
}
}
一道编译时候就显示“ Employee(String name,String id,double mony)"方法无效,需要返回值类型
求大神给点详细的注释。。。有点模糊 |
|