Guest User

Untitled

a guest
Feb 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. package student;
  2.  
  3. public class GraduatedStudent extends Student {
  4.  
  5. String thesis;
  6.  
  7. public GraduatedStudent(String thesis) {
  8. this.thesis = thesis;
  9. }
  10.  
  11. public GraduatedStudent(String thesis, long stdId, String stdName) {
  12. super(stdId, stdName);
  13. this.thesis = thesis;
  14. }
  15.  
  16. public String getThesis() {
  17. return thesis;
  18. }
  19.  
  20. public void setThesis(String thesis) {
  21. this.thesis = thesis;
  22. }
  23.  
  24. public long getStdId() {
  25. return stdId;
  26. }
  27.  
  28. public void setStdId(long stdId) {
  29. this.stdId = stdId;
  30. }
  31.  
  32. public String getStdName() {
  33. return stdName;
  34. }
  35.  
  36. public void setStdName(String stdName) {
  37. this.stdName = stdName;
  38. }
  39.  
  40. @Override
  41. public String toString() {
  42. return "GraduatedStudent{" + "thesis=" + thesis + '}' + super.stdName + super.stdId;
  43. }
  44.  
  45. }
Add Comment
Please, Sign In to add comment