protected Account(string name, EnumCustomerType customer, decimal balance, decimal interestRate) { this.Name = name; this.Customer = customer; this.Balance = balance; this.InterestRate = interestRate; }
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]; } }