#pragma once

using namespace System;

ref class Account
{
	long accNumber;   // the account number
	double balance;   // the current balance
	double limit;     // the overdraft limit

	public:
		Account(long num, double bal, double lim);
		property long AccountNumber
		{
			long get() { return accNumber; }
		}
		property double Balance
		{
			double get() { return balance; }
		}
		property double Limit
		{
			double get() { return limit; }
			void set(double lim)
			{
				if (lim < 0)
					throw gcnew ArgumentException(L"Limit can’t be negative");
				limit = lim;
			}
		}
};



