Advertisement
Guest User

Untitled

a guest
May 20th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2.  
  3. // TODO: Klasse für Teilnehmer mit geeignetet Properties und Methoden erstellen
  4. class Teilnehmer {
  5. private $Vorname;
  6. private $Nachname;
  7. private $Semester;
  8.  
  9. public function getVorname()
  10. {
  11. return $this->Vorname;
  12. }
  13.  
  14. public function setVorname($Vorname)
  15. {
  16. $this->Vorname = $Vorname;
  17. }
  18.  
  19.  
  20. public function getNachname()
  21. {
  22. return $this->Nachname;
  23. }
  24.  
  25.  
  26. public function setNachname($Nachname)
  27. {
  28. $this->Nachname = $Nachname;
  29. }
  30.  
  31.  
  32. public function getSemester()
  33. {
  34. return $this->Semester;
  35. }
  36.  
  37. public function setSemester($Semester)
  38. {
  39. $this->Semester = $Semester;
  40. }
  41.  
  42.  
  43. }
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement