Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pack3;
- import pack1.Teacher;
- public class Student extends Teacher {
- int id;
- public Student(int s_id, int t_id, int sub_id){
- super(t_id, sub_id);
- this.id = s_id;
- }
- public void setSubjectId(int sub_id){
- super.subjectId = sub_id;
- }
- public int getSubjectId(){
- return super.subjectId;
- }
- protected void setTeacherId(int t_id){
- super.teacherId = t_id;
- }
- protected int getTeacherId(){
- return super.teacherId;
- }
- public int getId(){
- return id;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement