Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package hausaufgabensystem;
  7.  
  8. /**
  9.  *
  10.  * @author macbook
  11.  */
  12. public class Aufgabe {
  13.     public String aufgabenStellung;
  14.     public Lehrer lehrer;
  15.     public boolean aktiv;
  16.    
  17.     Aufgabe(String aufgabenStellung, Lehrer lehrer) {
  18.         this.aufgabenStellung = aufgabenStellung;
  19.         this.lehrer = lehrer;
  20.         this.aktiv = true;
  21.     }
  22.    
  23.     public void setAktiv(boolean aktiv) {
  24.         this.aktiv = aktiv;
  25.     }
  26.     public boolean getAktiv() {
  27.         return this.aktiv;
  28.     }
  29.     public Lehrer getLehrer() {
  30.         return this.lehrer;
  31.     }
  32.     public String getAufgabenStellung() {
  33.         return this.aufgabenStellung;
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement