Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fact.it.voorbeeldfietsen.model;
- public class Student {
- private String rNummer, voornaam, naam;
- private boolean opKot;
- public Student() {
- }
- public Student(String rNummer, String voornaam, String naam) {
- this.rNummer = rNummer;
- this.voornaam = voornaam;
- this.naam = naam;
- this.opKot = false;
- }
- public String getrNummer() {
- return rNummer;
- }
- public void setrNummer(String rNummer) {
- this.rNummer = rNummer;
- }
- public String getVoornaam() {
- return voornaam;
- }
- public void setVoornaam(String voornaam) {
- this.voornaam = voornaam;
- }
- public String getNaam() {
- return naam;
- }
- public void setNaam(String naam) {
- this.naam = naam;
- }
- public boolean isOpKot() {
- return opKot;
- }
- public void setOpKot(boolean opKot) {
- this.opKot = opKot;
- }
- public String getEmailAdres() {
- return rNummer + "@student.thomasmore.be";
- }
- public String getInitialen(){
- return
- voornaam.charAt(0)
- +
- naam.substring(0,2);
- }
- public String getVolledigeNaam() {
- return voornaam + " " +
- naam.toUpperCase()
- +
- " ("+
- getInitialen()
- + ")";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement