ssh结构中写javabean时,写其中一个属性时
publicInfoCommonBean(Integerid,Stringname,Stringurl,Integerprice,Stringpic,intnumber)...
public InfoCommonBean(Integer id,String name,String url,Integer price,String pic,int number) {
super();
this.id = id;
this.url = url;
this.name = name;
this.price = price;
this.pic=pic;
this.newname = StringUtil.getSub(name, number);
写不写super()都可以吧?写的话有啥好处? 展开
super();
this.id = id;
this.url = url;
this.name = name;
this.price = price;
this.pic=pic;
this.newname = StringUtil.getSub(name, number);
写不写super()都可以吧?写的话有啥好处? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询