Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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();
 }
Пример #3
0
 /// <summary>
 /// Constructor that takes no arguments.
 /// </summary>
 public clsEmployee() : base()
 {
     clsEmployee.staticNbcounter++;
     employeeIdCounter = staticNbcounter;
     nbEmployee++;
     HiringDate = new clsDate();
 }
Пример #4
0
 /// <summary>
 /// Constructor that takes six arguments without the lists.
 /// </summary>
 public clsEmployee(string vNumber, string vName, string vLastName, int vDay, int vMonth, int vYear) : base(vNumber, vName, vLastName)
 {
     clsEmployee.staticNbcounter++;
     employeeIdCounter = staticNbcounter;
     nbEmployee++;
     HiringDate = new clsDate(vDay, vMonth, vYear);
 }
Пример #5
0
        /// <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);
        }
Пример #6
0
        /// <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);
        }
Пример #7
0
        /// <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   = clsDataSource.fncEmptyConstructor();
            Type     = clsDataSource.fncEmptyConstructor();
            Balance  = 0;
            OpenDate = new clsDate();
        }