// CheckingAccount.java
// by Bryson Payne

    public class CheckingAccount
   {
   // instance fields
      private double balance;
      private int accountNumber;
   // Constructors
       public CheckingAccount(int anAccountNumber, double aBalance)
      {
         this.accountNumber = anAccountNumber;
         this.balance = aBalance;
      }
   // methods
       public void deposit(double amount)
      {
         balance += amount;
      }
       public void withdraw(double amount)
      {
         balance -= amount;
      }
       public double getBalance()
      {
         return balance;
      }
   }