Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. package fact.it.voorbeeldfietsen.model;
  2.  
  3. public class Student {
  4. private String rNummer, voornaam, naam;
  5. private boolean opKot;
  6. public Student() {
  7. }
  8. public Student(String rNummer, String voornaam, String naam) {
  9. this.rNummer = rNummer;
  10. this.voornaam = voornaam;
  11. this.naam = naam;
  12. this.opKot = false;
  13. }
  14.  
  15. public String getrNummer() {
  16. return rNummer;
  17. }
  18.  
  19. public void setrNummer(String rNummer) {
  20. this.rNummer = rNummer;
  21. }
  22.  
  23. public String getVoornaam() {
  24. return voornaam;
  25. }
  26.  
  27. public void setVoornaam(String voornaam) {
  28. this.voornaam = voornaam;
  29. }
  30.  
  31. public String getNaam() {
  32. return naam;
  33. }
  34.  
  35. public void setNaam(String naam) {
  36. this.naam = naam;
  37. }
  38.  
  39. public boolean isOpKot() {
  40. return opKot;
  41. }
  42.  
  43. public void setOpKot(boolean opKot) {
  44. this.opKot = opKot;
  45. }
  46.  
  47. public String getEmailAdres() {
  48. return rNummer + "@student.thomasmore.be";
  49. }
  50. public String getInitialen(){
  51. return
  52. voornaam.charAt(0)
  53. +
  54. naam.substring(0,2);
  55. }
  56.  
  57. public String getVolledigeNaam() {
  58. return voornaam + " " +
  59. naam.toUpperCase()
  60. +
  61. " ("+
  62. getInitialen()
  63. + ")";
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement