Guest User

Untitled

a guest
Apr 26th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /**Student.java**/
  2. public class Student {
  3. private String firstName;
  4. private String lastName;
  5. private int studentId;
  6.  
  7. public Student(String firstName, String lastName, int studentId) {
  8. this.firstName = firstName;
  9. this.lastName = lastName;
  10. this.studentId = studentId;
  11. }
  12.  
  13. public String getFirstName() {
  14. return firstName;
  15. }
  16.  
  17. public void setFirstName(String firstName) {
  18. this.firstName = firstName;
  19. }
  20.  
  21. public String getLastName() {
  22. return lastName;
  23. }
  24.  
  25. public void setLastName(String lastName) {
  26. this.lastName = lastName;
  27. }
  28.  
  29. public int getStudentId() {
  30. return studentId;
  31. }
  32.  
  33. public void setStudentId(int studentId) {
  34. this.studentId = studentId;
  35. }
  36. }
Add Comment
Please, Sign In to add comment