/*
 * Minimal test program for BankAccount class
 * CSE 374 C++ demo, 11/07-11/15  hp
 */

#include <iostream>
using namespace std;

#include "BankAccount.h"

int main() {
  // stack allocated object
  BankAccount mine(17,42);
  cout << "my account num = " << mine.get_account()
       << ", balance = " << mine.get_balance() << endl;

  // heap allocated object
  BankAccount *yours = new BankAccount(1,0);
  yours->deposit(1000000);
  cout << "your account num = " << yours->get_account()
       << ", balance = " << yours->get_balance() << endl;
  delete yours;

  return 0;
}