main
lukas 2022-12-06 12:17:28 +01:00
parent d5616f14f6
commit 2f85e40ff0
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
package de.hs_mannheim.informatik.bank.domain; package de.hs_mannheim.informatik.bank.domain;
public class Depot { public class Depot extends Geldanlage {
} }

View File

@ -1,5 +1,7 @@
package de.hs_mannheim.informatik.bank.domain; package de.hs_mannheim.informatik.bank.domain;
public class Geldanlage { public class Geldanlage {
private Kunde inhaber;
} }

View File

@ -3,7 +3,7 @@ package de.hs_mannheim.informatik.bank.domain;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
public class Konto implements Serializable { public class Konto extends Geldanlage implements Serializable {
private int nummer; private int nummer;
protected long stand = 0; protected long stand = 0;
private String inhaber; private String inhaber;