Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package student;
- public class GraduatedStudent extends Student {
- String thesis;
- public GraduatedStudent(String thesis) {
- this.thesis = thesis;
- }
- public GraduatedStudent(String thesis, long stdId, String stdName) {
- super(stdId, stdName);
- this.thesis = thesis;
- }
- public String getThesis() {
- return thesis;
- }
- public void setThesis(String thesis) {
- this.thesis = thesis;
- }
- public long getStdId() {
- return stdId;
- }
- public void setStdId(long stdId) {
- this.stdId = stdId;
- }
- public String getStdName() {
- return stdName;
- }
- public void setStdName(String stdName) {
- this.stdName = stdName;
- }
- @Override
- public String toString() {
- return "GraduatedStudent{" + "thesis=" + thesis + '}' + super.stdName + super.stdId;
- }
- }
Add Comment
Please, Sign In to add comment