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

submission final

parent 942a5f47
......@@ -2,22 +2,22 @@ public class BankAccount {
// 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.Balancevalue(balance);
}
private int accountNumber;
private int balance;
private int accountnumber;
private String name;
private int balance;
private double fees = 0.95;
protected int overdraft = 0;
public int getAccountNumber() {
return accountNumber;
return accountnumber;
}
public String getName() {
return name;
......@@ -32,8 +32,8 @@ public class BankAccount {
return overdraft;
}
public void AccountNumbervalue(int accountNumber) {
this.accountNumber = accountNumber;
public void Accountnumbervalue(int accountnumber) {
this.accountnumber = accountnumber;
}
public void Namevalue(String name) {
this.name = name;
......
public class SavingsAccount extends BankAccount {
//final submission
public SavingsAccount(int accountNumber, String name, int balance) {
super(accountNumber, name, balance);
public SavingsAccount(int accountnumber, String name, int balance) {
super(accountnumber, name, balance);
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