Пример #1
0
        public void BorrowMoney(float months, float amount)
        {
            float interest = CalculateBorrowInterest(months, amount);
            Debt  d        = Debt.Create(this, amount, interest / 12.0f, (int)months);

            Debts.Add(d);
            Cash += amount;
        }
Пример #2
0
 public static Debt Create(Bank debtor, float amount, float interest, int months)
 {
     Debt d = new Debt();
     d.Debtor = debtor;
     d.Principal = amount;
     d.Interest = interest;
     d.Months = months;
     return d;
 }
Пример #3
0
        public static Debt Create(Bank debtor, float amount, float interest, int months)
        {
            Debt d = new Debt();

            d.Debtor    = debtor;
            d.Principal = amount;
            d.Interest  = interest;
            d.Months    = months;
            return(d);
        }