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)
 {
 }
示例#6
0
 public LoanAccount(Customer customer, decimal balance, decimal rate)
     : base(customer, balance, rate)
 {
 }
示例#7
0
 public Deposit(Customer customer, decimal balance, decimal interest)
     : base(customer, balance, interest)
 {
 }
示例#8
0
 public Deposit(decimal balance, decimal interestRate, Customer customer)
     : base(balance, interestRate, customer)
 {
 }
示例#9
0
 public Loan(decimal balance, decimal interestRate, Customer customer)
     : base(balance, interestRate, customer)
 {
 }
示例#10
0
 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;
 }
示例#12
0
 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)
 {
 }
示例#16
0
 public Mortgage(decimal balance, decimal interestRate, Customer customer)
     : base(balance, interestRate, customer)
 {
 }
 public MortgageAccount(Customer customer, decimal interestRate)
     : base(customer, interestRate)
 {
 }
示例#18
0
 public Loan(Customer customer, decimal balance, decimal interest)
     : base(customer, balance, interest)
 { 
 
 }
示例#19
0
  public Mortgage(Customer customer, decimal balance, decimal interest)
     : base(customer, balance, interest)
 { 
 
 }
示例#20
0
 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)
 {
 }
示例#24
0
 public Loan(Customer customer, decimal balance, decimal interest, int period)
     : base(customer, balance, interest, period)
 {
 }
示例#25
0
 public LoanAccount(Customer customer)
     : base(customer)
 {
 }
示例#26
0
 protected Account(Customer customer, decimal balance, decimal interestPerMonth)
 {
     this.Customer = customer;
     this.Balance = balance;
     this.InterestPerMonth = interestPerMonth;
 }
示例#27
0
 public MortgageAccount(Customer initialCustomer, decimal initialBalance, decimal initialInterestRate)
     : base(initialCustomer, initialBalance, initialInterestRate)
 {
 }
 public DepositAccount(decimal balance, decimal interest, Customer customer)
     : base(balance, interest, customer)
 {
 }
示例#29
0
 public LoanAccount(Customer loanCustomer, decimal loanBalance, decimal loanInterestRate)
     : base(loanCustomer, loanBalance, loanInterestRate)
 {
 }
示例#30
0
 public DepositAccount(Customer customer)
     : base(customer)
 {
 }