Building student_types.jar
The .jar
The Source
/////////////////student.java///////////////////////////
package student_types;
public class student implements java.io.Serializable{
static final long serialVersionUID = 123488L;
public String name;
public String year; //Frosh, Soph, Jr, Senior,Year 1,Year 2,Year 3
public int testgrade; //entrance exam grade
public student(String s,String y,int t){
name=s;
year=y;
testgrade=t;
}
}
//////////////////athlete.java////////////////////////
package student_types;
public class athlete extends student implements java.io.Serializable{
static final long serialVersionUID = 123487L;
public String sport;
public athlete(String s,String n,String y,int t){
super(n,y,t);
sport=s;
}
}
////////////graduate_student.java///////////////
package student_types;
public class graduate_student extends student implements java.io.Serializable{
static final long serialVersionUID = 123481L;
public String program;
public graduate_student(String s,String n,String y,int t){
super(n,y,t);
program=s;
}
}
////////////student_worker.java///////////////
package student_types;
public class student_worker extends student implements java.io.Serializable {
static final long serialVersionUID = 123486L;
public String job;
public student_worker(String s,String n,String y,int t){
super(n,y,t);
job=s;
}
}
The Build