Java程序类的定义与使用
答案:1 悬赏:0 手机版
解决时间 2021-11-19 18:49
- 提问者网友:伴风望海
- 2021-11-18 20:44
Java程序类的定义与使用
最佳答案
- 五星知识达人网友:蓝房子
- 2021-11-18 22:10
import java.util.Date;
public class Gun {
private String name;
private String inventor;
private Date date;
private String sequence;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getInventor() {
return inventor;
}
public void setInventor(String inventor) {
this.inventor = inventor;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String getSequence() {
return sequence;
}
public void setSequence(String sequence) {
this.sequence = sequence;
}
}追问大神,能在帮忙加点别的东西不,,,,
public class Gun {
private String name;
private String inventor;
private Date date;
private String sequence;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getInventor() {
return inventor;
}
public void setInventor(String inventor) {
this.inventor = inventor;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String getSequence() {
return sequence;
}
public void setSequence(String sequence) {
this.sequence = sequence;
}
}追问大神,能在帮忙加点别的东西不,,,,
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯