/// <summary> /// Constructor that takes six arguments. /// </summary> public clsAccount(string vNumber, string vType, double vBalance, int vDay, int vMonth, int vYear) { Number = vNumber; Type = vType; Balance = vBalance; OpenDate = new clsDate(vDay, vMonth, vYear); }
/// <summary> /// Functions : Open Account /// </summary> /// <param name="Number"></param> /// <param name="Type"></param> public virtual void fncOpenAccount(string Number, string Type) { Number = vNumber; Balance = 0; Type = vType; OpenDate = new clsDate(); }
/// <summary> /// Constructor that takes seven arguments -> in the Function protected abstract : Pay interest. /// </summary> public clsAccount(double vInterestRate, string vNumber, string vType, double vBalance, int vDay, int vMonth, int vYear) { // in the Function protected abstract : Pay interest. InterestRate = vInterestRate; Number = vNumber; Type = vType; Balance = vBalance; OpenDate = new clsDate(vDay, vMonth, vYear); }
/// <summary> /// Constructor that takes eigth arguments UnPaidAccount -> in the Function protected abstract : Charge commission. /// </summary> public clsAccount(double vCommission, int vOverdraft, string vNumber, string vType, double vBalance, int vDay, int vMonth, int vYear) { // in the Function protected abstract : Charge commission. Commission = vCommission; Overdraft = vOverdraft; Number = vNumber; Type = vType; Balance = vBalance; OpenDate = new clsDate(vDay, vMonth, vYear); }
/// <summary> /// Constructor that takes no arguments. /// </summary> public clsAccount() { // in the Function protected abstract : Charge commission. Commission = 0; Overdraft = 0; CommissionCharge = 0; // in the Function protected abstract : Pay interest. InterestRate = 0; InterestPayment = 0; Number = clsComplements.fncEmptyConstructor(); Type = clsComplements.fncEmptyConstructor(); Balance = 0; OpenDate = new clsDate(); }