Commit 469d9e5a authored by sam.pople's avatar sam.pople

submission final

parent 942a5f47
...@@ -2,22 +2,22 @@ public class BankAccount { ...@@ -2,22 +2,22 @@ public class BankAccount {
// Transactions are in pence // Transactions are in pence
public BankAccount(int accountNumber, String name, int balance) { public BankAccount(int accountnumber, String name, int balance) {
this.AccountNumbervalue(accountNumber); this.Accountnumbervalue(accountnumber);
this.Namevalue(name); this.Namevalue(name);
this.Balancevalue(balance); this.Balancevalue(balance);
} }
private int accountNumber; private int accountnumber;
private int balance;
private String name; private String name;
private int balance;
private double fees = 0.95; private double fees = 0.95;
protected int overdraft = 0; protected int overdraft = 0;
public int getAccountNumber() { public int getAccountNumber() {
return accountNumber; return accountnumber;
} }
public String getName() { public String getName() {
return name; return name;
...@@ -32,8 +32,8 @@ public class BankAccount { ...@@ -32,8 +32,8 @@ public class BankAccount {
return overdraft; return overdraft;
} }
public void AccountNumbervalue(int accountNumber) { public void Accountnumbervalue(int accountnumber) {
this.accountNumber = accountNumber; this.accountnumber = accountnumber;
} }
public void Namevalue(String name) { public void Namevalue(String name) {
this.name = name; this.name = name;
......
public class SavingsAccount extends BankAccount { public class SavingsAccount extends BankAccount {
//final submission public SavingsAccount(int accountnumber, String name, int balance) {
public SavingsAccount(int accountNumber, String name, int balance) { super(accountnumber, name, balance);
super(accountNumber, name, balance);
this.Feesvalue(1.00); this.Feesvalue(1.00);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment