5个回答
展开全部
public class Student {
private String name;
private int age;
private String classNo;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getclassNo() {
return classNo;
}
public void setclassNo(String classNo) {
this.classNo = classNo;
}
}
private String name;
private int age;
private String classNo;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getclassNo() {
return classNo;
}
public void setclassNo(String classNo) {
this.classNo = classNo;
}
}
展开全部
public class StudentInfo
{
private String userName;
private int userAge;
private int classIn;
public String getUsername()
{
return this.userName;
}
public void setUsername(String username)
{
this.userName=username;
}
.......
}
{
private String userName;
private int userAge;
private int classIn;
public String getUsername()
{
return this.userName;
}
public void setUsername(String username)
{
this.userName=username;
}
.......
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Ls的写的没错再加个GET SET方法就更好了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
[public] class student {
private/public String name;
private/public int age;
private/public int classnum;
}
private/public String name;
private/public int age;
private/public int classnum;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
那位高手指点指点啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询