public class hilfe {
private int Nr;
private String Titel = null;
private String Ort = null;
private String Veranstalter = null;
private String von = null;
private String bis = null;
private String Information = null;
public hilfe() {
Nr = 0;
Titel = new String("");
Ort = new String("");
Veranstalter = new String("");
von = new String("");
bis = new String("");
Information = new String("");
}
//Standardkonstruktor mit Daten
public hilfe(int Nr, String Titel, String Ort, String Veranstalter, String von, String bis, String Information) {
this();
this.Nr = Nr;
this.Titel = Titel;
this.Ort = Ort;
this.Veranstalter = Veranstalter;
this.von = von;
this.bis = bis;
this.Information=Information;
}
//get-Methoden für die Attribute
public int getNr(){return Nr;}
public String getTitel() { return Titel; }
public String getOrt() { return Ort; }
public String getVeranstalter() { return Veranstalter; }
public String getvon() { return von; }
public String getbis() { return bis; }
public String getInformation() { return Information; }
//set-Methoden für die Attribute
public void setNr(int Nr) {this.Nr = Nr;}
public void setTitel(String Titel) {this.Titel = Titel;}
public void setOrt(String Ort) {this.Ort = Ort;}
public void setVeranstalter(String Veranstalter) {this.Veranstalter = Veranstalter;}
public void setvon(String von) {this.von = von;}
public void setbis(String bis) {this.bis = bis;}
public void setInformation(String Information) {this.Information = Information;}
public String toString() {
return "Nr:" + Nr + ", Titel: " + Titel + ", Ort: " + Ort + ", Veranstalter: " + Veranstalter + ", von: " + von + " , bis:"+ bis + ", Information:" + Information;
}
}