Commit 1275c7bb authored by paolo.tokam's avatar paolo.tokam

Upload New File

parent 85677407
import java.util.ArrayList;
public class BankAccount {
private int acccountNumber;
private String name;
private double balance;
// set balance to 0.00
public BankAccount() {
balance = 0.00;
}
// deposit
public void deposit(double amount) {
balance = balance + amount;
}
// withdrawal
public void withdrawal(double amount) {
if (amount<=balance) {
balance = balance - amount;
}
else {
System.out.println("Denied insufficient funds");
}
}
//bankFees
public void bankfees(double amount) {
balance = 5% + BankAccount;
return bankFees;
}
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