16 lines
336 B
Java
16 lines
336 B
Java
package LibrarySystem.domain.benutzern;
|
|
|
|
public class Student extends Benutzer {
|
|
|
|
private static final double JAHRESGEBUEHR_ERMAESSIGT = 10.0;
|
|
|
|
public Student(String name, int alter) {
|
|
super(name, alter, "S");
|
|
}
|
|
|
|
@Override
|
|
public double getJahresgebuehr() {
|
|
return JAHRESGEBUEHR_ERMAESSIGT;
|
|
}
|
|
}
|