- #include "StdAfx.h"
- #include "account.h"
- #using <mscorlib.dll>
- using namespace System;
- Account::Account(long num, double bal, double lim)
- {
- Console::WriteLine("Account: constructor");
- // Basic sanity checks
- if (num < 0 || lim < 0)
- throw new ArgumentException("Bad arguments to constructor");
- // Initialize values
- accNumber = num;
- balance = bal;
- limit = lim;
- }