JAVA Programming HELP!!!!!?
please please help with java, i dont understand it at all, the question is below.
Create a BankAccount class. Then create another class, BankTest, that will
test your BankAccount, by constructing an object, depositing £1000, withdrawing
£500, then withdrawing additional £400. A remaining balance is printed after
each translation.
Please could you program it and get back to me asap.
Many Thanks
ive tried:
public class BankAccount{
public BankAccount(){
balance =0;
}
public void deposit(double amt){
balance = balance =amt;
}
public void withdraw(double amt){
balance = balance-amt;
}
public double getBalance(){
return balance;
}
}
but still comes up with errors before i test it
|