Ejemplo n.º 1
0
        public bool Valuation(AccountCategoryID AccountCategory)

        {
            if (Balance <= 1000 && AccountCategory == AccountCategoryID.Basic)
            {
                return(true);
            }

            else if (Balance <= 5000 && AccountCategory == AccountCategoryID.Mid)
            {
                return(true);
            }

            else if (Balance <= 10000 && AccountCategory == AccountCategoryID.Senior)
            {
                return(true);
            }

            else if (Balance > 10000 && AccountCategory == AccountCategoryID.Lead)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 public StoreAccount(string customerName) : base(customerName) // Kalw ton constructor tou patera Account
 {
     AccountCategory = AccountCategoryID.Senior;
 }