/**********************************************************************
 * checking.h --- Class declaration for a simple checking account.
 * Tom Kelliher
 *
 * A Checking object consists of an account number and balance.
 * Allowed operations:
 *    Constructor: Create a checking account with a given account
 *       number and balance.
 *    inputTrans: Apply a transaction (from enum TransactionType) to
 *       the account.
 *    printBalance: Print the account number and balance.
 *
 * This class is a base class for a joint checking class.
 **********************************************************************/


#ifndef __CHECKING_H
#define __CHECKING_H


// Types of allowed transaction.
enum TransactionType { DEPOSIT = 'D', WITHDRAWAL = 'W' };


class Checking
{
 private:
   int accntNumber;
   double accntBalance;

 public:
   Checking(int number, double balance);
   void inputTrans(TransactionType type, double amount);
   void printBalance(void);
};


#endif
