Java The constructor Items(int, String, String, int, int, String) is undefined怎么办啊 10
publicclassItems{privateStringa;privateStringb;privateintc;privateintd;privateStringe...
public class Items{
private String a;
private String b;
private int c;
private int d;
private String e;
}
=-=定义了一个这个 在main方法里写就提示出现这个错误
Items i = new Items(1,"..",".",1,1,"1.jpg"); 展开
private String a;
private String b;
private int c;
private int d;
private String e;
}
=-=定义了一个这个 在main方法里写就提示出现这个错误
Items i = new Items(1,"..",".",1,1,"1.jpg"); 展开
展开全部
The constructor Employee(int, String) is undefined
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
public class Items{
private String a;
private String b;
private int c;
private int d;
private String e;
public Items(String a, String b, int c, int d, String e) {
super();
this.a = a;
this.b = b;
this.c = pach;
this.d = d;
this.e = e;
}
}
这是基础,多看看书。
private String a;
private String b;
private int c;
private int d;
private String e;
public Items(String a, String b, int c, int d, String e) {
super();
this.a = a;
this.b = b;
this.c = pach;
this.d = d;
this.e = e;
}
}
这是基础,多看看书。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询