/*
 * Bank account implementation
 * CSE 374 C++ demo, 11/07-11/15  hp
 */

#include "BankAccount.h"

// constructors
BankAccount::BankAccount(int acctnum, int initial_balance){
  balance = initial_balance;
  number = acctnum;
 }

// member functions

void BankAccount::deposit(int howmuch) {
  balance += howmuch;
}

int BankAccount::get_balance() {
  return balance;
}


int BankAccount::get_account() {
  return number;
}