Guest User

Untitled

a guest
Apr 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. package de.gdplabor.aufgabe4;
  2.  
  3. public class Nachricht {
  4.  
  5. private String betreff;
  6. private int datum;
  7. private int Date = datum;
  8. private String text;
  9. private Benutzer autor;
  10.  
  11. public void Nachricht(String b, String t, Benutzer a){
  12.  
  13. }
  14.  
  15. public String getBetreff() {
  16. return betreff;
  17. }
  18.  
  19. public void setBetreff(String betreff) {
  20. this.betreff = betreff;
  21. }
  22.  
  23. public int getDatum() {
  24. return datum;
  25. }
  26.  
  27. public void setDatum(int datum) {
  28. this.datum = datum;
  29. }
  30.  
  31. public String getText() {
  32. return text;
  33. }
  34.  
  35. public void setText(String text) {
  36. this.text = text;
  37. }
  38.  
  39. public Benutzer getAutor() {
  40. return autor;
  41. }
  42.  
  43. public void setAutor(Benutzer autor) {
  44. this.autor = autor;
  45. }
  46.  
  47. @Override
  48. public String toString() {
  49. return "Nachricht [betreff=" + betreff + ", datum=" + datum + ", text="
  50. + text + ", autor=" + autor + "]";
  51. }
  52.  
  53.  
  54.  
  55. }
Add Comment
Please, Sign In to add comment