public Account(Customer customer, decimal balance, decimal interest, int period) { this.Customer = customer; this.Balance = balance; this.MonthlyInteresRate = interest; this.PeriodInMonths = period; }
public Account(TypeAccount type, Customer customer, decimal balance, double IR) { this.Type = type; this.Customer = customer; this.InterestRate = IR; this.Balance = balance; }
//Constructors public Account(Customer owner, decimal startBalance, decimal interestRate) { this.owner = owner; this.balance = startBalance; this.InterestRate = interestRate; this.openDate = new DateTime(2010, 4, 1); }
static void Main() { Bank bank = new Bank("SomeBank"); Customer newOwner = new Customer("Stamat", CustomerType.Individual); Deposit deposit = new Deposit(newOwner, 1000, 5.5m); bank.AddAccount(deposit); Customer secondOwner = new Customer("SomeLargeCompanyWitchConstructsTermometri", CustomerType.Company); Mortgage loan = new Mortgage(secondOwner, 10000000, 6.5m); bank.AddAccount(loan); Console.WriteLine(bank); for (int i = 0; i < bank.AllAccounts.Count; i++) { Console.WriteLine(); Console.WriteLine("Account {0}: ", i + 1); Console.WriteLine(bank.AllAccounts[i]); } }
//Constructors public LoanAccount(Customer customer, decimal balance, decimal interestRate) : base(customer, balance, interestRate) { }
public LoanAccount(Customer customer, decimal balance, decimal rate) : base(customer, balance, rate) { }
public Deposit(Customer customer, decimal balance, decimal interest) : base(customer, balance, interest) { }
public Deposit(decimal balance, decimal interestRate, Customer customer) : base(balance, interestRate, customer) { }
public Loan(decimal balance, decimal interestRate, Customer customer) : base(balance, interestRate, customer) { }
protected Account(Customer awner, decimal balance, decimal mountlyInterestRate) { this.Awner = awner; this.Balance = balance; this.MounthlyInterestRate = mountlyInterestRate; }
public Account(Customer cus, double bal,double inte) { this.Customer = cus; this.Balance = bal; this.InterestRate = inte; }
public Account(Customer accountCustomer, decimal accountBalance, decimal accountInteresRate) { this.Customer = accountCustomer; this.Balance = accountBalance; this.InterestRate = accountInteresRate; }
//Constructor public Account(Customer customer, decimal balance, decimal interestRate) { this.Customer = customer; this.Balance = balance; this.InterestRate = interestRate; }
//Constructors public Deposit(Customer owner, decimal startBalance, decimal interestRate) : base(owner, startBalance, interestRate) { }
public MortgageAccount(decimal balance, decimal interest, Customer customer) : base(balance, interest, customer) { }
public Mortgage(decimal balance, decimal interestRate, Customer customer) : base(balance, interestRate, customer) { }
public MortgageAccount(Customer customer, decimal interestRate) : base(customer, interestRate) { }
public Loan(Customer customer, decimal balance, decimal interest) : base(customer, balance, interest) { }
public Mortgage(Customer customer, decimal balance, decimal interest) : base(customer, balance, interest) { }
public Account(Customer customer, decimal balance, decimal rate) { this.customer = customer; this.balance = balance; this.rate = rate; }
public DepositAccount(Customer customer, decimal balance, decimal interestRate) : base(customer, balance, interestRate) { this.AccountType = AccountType.Deposit; }
public MortgageAccount(Customer awner, decimal balance, decimal mountlyInterestRate) : base(awner, balance, mountlyInterestRate) { }
//Constructors public DepositAccount(Customer customer, decimal ballance, decimal interestRate) : base(customer,ballance,interestRate) { }
public Loan(Customer customer, decimal balance, decimal interest, int period) : base(customer, balance, interest, period) { }
public LoanAccount(Customer customer) : base(customer) { }
protected Account(Customer customer, decimal balance, decimal interestPerMonth) { this.Customer = customer; this.Balance = balance; this.InterestPerMonth = interestPerMonth; }
public MortgageAccount(Customer initialCustomer, decimal initialBalance, decimal initialInterestRate) : base(initialCustomer, initialBalance, initialInterestRate) { }
public DepositAccount(decimal balance, decimal interest, Customer customer) : base(balance, interest, customer) { }
public LoanAccount(Customer loanCustomer, decimal loanBalance, decimal loanInterestRate) : base(loanCustomer, loanBalance, loanInterestRate) { }
public DepositAccount(Customer customer) : base(customer) { }