From c2d221d6fd0ec99f4f35f1ae7031e1fde27a94ba Mon Sep 17 00:00:00 2001 From: elarturo Date: Mon, 18 Nov 2024 23:02:47 +0100 Subject: [PATCH] =?UTF-8?q?Videogame=20mit=20entsprechenden=20Methoden=20h?= =?UTF-8?q?inzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/DomainLayer/VideoGame.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Bibliotheksverwaltung/src/DomainLayer/VideoGame.java diff --git a/Bibliotheksverwaltung/src/DomainLayer/VideoGame.java b/Bibliotheksverwaltung/src/DomainLayer/VideoGame.java new file mode 100644 index 0000000..474f9bb --- /dev/null +++ b/Bibliotheksverwaltung/src/DomainLayer/VideoGame.java @@ -0,0 +1,36 @@ +package DomainLayer; + +import java.time.LocalDate; + +public class VideoGame extends Medium { + public VideoGame(String id, String title, String releaseYear) { + super(id, title, releaseYear); + } + + @Override + public int getBorrowPeriod() { + return 28; // 4 Wochen + } + + @Override + public boolean isRenewable() { + return true; // Verlängerung möglich + } + + @Override + public int getMaxRenewals() { + return 1; // Bis zu 1 Mal verlängerbar + } + + @Override + public String getAuthor() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setBorrowDate(LocalDate currentDate) { + // TODO Auto-generated method stub + + } +} \ No newline at end of file