Ejemplo n.º 1
0
 protected Account(string name, EnumCustomerType customer, decimal balance, decimal interestRate)
 {
     this.Name = name;
     this.Customer = customer;
     this.Balance = balance;
     this.InterestRate = interestRate;
 }
Ejemplo n.º 2
0
        public MortageAccount(string name, EnumCustomerType customer, int months)
            : base(customer)
        {
            if (customer.Equals(EnumCustomerType.Company))
                this.FullName = name;

            if (customer.Equals(EnumCustomerType.Individual))
            {
                var splitted = name.Split(' ');
                this.FirstName = splitted[0];
                this.LastName = splitted[1];
            }
        }