diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..99ae653 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/sqlDataSources.xml b/.idea/sqlDataSources.xml deleted file mode 100644 index 3119eab..0000000 --- a/.idea/sqlDataSources.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml deleted file mode 100644 index 89d20ce..0000000 --- a/.idea/sqldialects.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Loenkonto.java b/src/Loenkonto.java index ee6e6cc..dbf0f7a 100644 --- a/src/Loenkonto.java +++ b/src/Loenkonto.java @@ -1,56 +1,24 @@ -public class Loenkonto extends Konti { - - //Klassen Loenkonto: - //Håndterer data om Lønkonti. Skal kunne ting indenfor de parametre vi har fået. - //Indsætte penge, Udtrække penge, Sende penge til Opsparing, etc.. - - private double deposit = 0; - private double withDraw = 0; - private double limit = 0; - - private Loenkonto(String typeName) { - super(typeName); - } - - private Loenkonto(int acc_Regno, double acc_No, String typeName) { - super(acc_Regno, acc_No, typeName); - } - public Loenkonto(String typeName, double deposit, double withDraw, double limit) { - super(typeName); - this.deposit = deposit; - this.withDraw = withDraw; - this.limit = limit; - } +/** + * denne klasse skal være supklasse af en klasse some hedder Konti + * ideen med denne klasse er at den skal kunne kontrollere at det er en lønkonto når vi gør brug af nogle metoder + * det som en lønkonto skal kunne gå i minus, som den eneste form for konto i vores program + * + * @author jokkol2 + * @version 1 + * @since 2017-30-11 + */ - public Loenkonto(int acc_Regno, double acc_No, String typeName, double deposit, double withDraw, double limit) { - super(acc_Regno, acc_No, typeName); - this.deposit = deposit; - this.withDraw = withDraw; - this.limit = limit; - } - - public double getDeposit() { - return deposit; - } - - public void setDeposit(double deposit) { - this.deposit = deposit; - } - - public double getWithDraw() { - return withDraw; - } +public class Loenkonto extends Konti { - public void setWithDraw(double withDraw) { - this.withDraw = withDraw; - } + /** + * denne klasse nedarver følgendene variabler + * double acc_No + * int acc_RegNo + * double acc_Sum + * String acc_Navn + * + */ - public double getLimit() { - return limit; - } - public void setLimit(double limit) { - this.limit = limit; - } }