28 lines
694 B
Java
28 lines
694 B
Java
package Bibliothek;
|
|
|
|
public class Videospiel extends Medien {
|
|
private String plattform;
|
|
private String entwickler;
|
|
|
|
public Videospiel(String titel, String id, int erscheinungsjahr, String plattform, String entwickler) {
|
|
super(titel, id, erscheinungsjahr);
|
|
this.plattform = plattform;
|
|
this.entwickler = entwickler;
|
|
}
|
|
|
|
@Override
|
|
public int getAusleihdauer() {
|
|
return 2;
|
|
}
|
|
|
|
@Override
|
|
public int getMaxVerlaengerungen() {
|
|
return 2;
|
|
}
|
|
|
|
@Override
|
|
public String getDetails() {
|
|
return "Videospiel: " + titel + " (" + erscheinungsjahr + "), Plattform: " + plattform + ", Entwickler: " + entwickler;
|
|
}
|
|
}
|