public class BankAccount { String owner; // person who owns the account int accountNumber; // the account number float balance; // amount of money currently in the account // Some constructors public BankAccount() { this.owner = ""; this.accountNumber = 0; this.balance = 0; } public BankAccount(String ownerName) { this.owner = ownerName; this.accountNumber = 0; this.balance = 0; } // Deposit money into the account public void deposit(float amount) { this.balance += amount; } // Withdraw money from the account public void withdraw(float amount) { if (this.balance >= amount) this.balance -= amount; } }