28 lines
467 B
Java
28 lines
467 B
Java
package de.joethei.java1.zettel6;
|
|
|
|
public class Vorlesung1 {
|
|
|
|
private String titel;
|
|
private int sws;
|
|
|
|
public String getTitel() {
|
|
return titel;
|
|
}
|
|
|
|
public void setTitel(String titel) {
|
|
this.titel = titel;
|
|
}
|
|
|
|
public int getSws() {
|
|
return sws;
|
|
}
|
|
|
|
public void setSws(int sws) {
|
|
this.sws = sws;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Titel: " + titel + " SWS: " + sws;
|
|
}
|
|
} |