See The following program, it will help in making new classes i.e. Employee.java, LabourCard.java and Healthcard.java
public class Student {
private String name;
private String rollNo;
private String program;
private String sClass;
private String phoneNo;
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setRollNo(String rollNo) {
this.rollNo = rollNo;
}
public String getRollNo() {
return rollNo;
}
public void setProgram(String program) {
this.program = program;
}
public String getProgram() {
return program;
}
public void setSClass(String sClass) {
this.sClass = sClass;
}
public String getSClass() {
return sClass;
}
public void setPhoneNo(String phoneNo) {
this.phoneNo = phoneNo;
}
public String getPhoneNo() {
return phoneNo;
}
}//end
public class Student {
private String name;
private String rollNo;
private String program;
private String sClass;
private String phoneNo;
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setRollNo(String rollNo) {
this.rollNo = rollNo;
}
public String getRollNo() {
return rollNo;
}
public void setProgram(String program) {
this.program = program;
}
public String getProgram() {
return program;
}
public void setSClass(String sClass) {
this.sClass = sClass;
}
public String getSClass() {
return sClass;
}
public void setPhoneNo(String phoneNo) {
this.phoneNo = phoneNo;
}
public String getPhoneNo() {
return phoneNo;
}
}//end
0 comments
Post a Comment