コード例 #1
0
ファイル: Deposit.cs プロジェクト: petar-rusev/OOP
 public Deposit(Customer customer,decimal balance,decimal interest)
     : base(customer, balance, interest)
 {
     this.Customer = customer;
     this.Balance = balance;
     this.InterestRate = interest;
 }
コード例 #2
0
ファイル: Loan.cs プロジェクト: petar-rusev/OOP
 public Loan(Customer Customer,decimal Balance,decimal InterestRate)
     : base(Customer, Balance, InterestRate)
 {
     this.Customer = Customer;
     this.Balance = Balance;
     this.InterestRate = InterestRate;
 }
コード例 #3
0
ファイル: Mortgage.cs プロジェクト: petar-rusev/OOP
 public Mortgage(Customer customer, decimal Balance, decimal InterestRate)
     :base(customer,Balance,InterestRate)
 {
     this.Customer = customer;
     this.Balance = Balance;
     this.InterestRate = InterestRate;
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: nok32/SoftUny-HW
        static void Main(string[] args)
        {
            var me = new Customer("Alex", CustomerType.Individual);
            var acc = new DepositAccount(me, 2000, 0.2);
            acc.Deposit(500);
            acc.Withdraw(600);
            Console.WriteLine("Balance: {0}", acc.Balance);
            Console.WriteLine("Interest: {0}", acc.CalculateInterest(15));
            Console.WriteLine("========");

            var loanAcc = new LoanAccount(me, 3000, 0.4);
            try
            {
                loanAcc.Withdraw(500);
            }
            catch (InvalidOperationException ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
コード例 #5
0
        public MortgageAcc(Customer customer, int balance, double interestRate) : base(customer, balance, interestRate)
        {

        }
コード例 #6
0
ファイル: Deposit.cs プロジェクト: EBojilova/SoftUni-3
 public Deposit(Customer customer,decimal balance, decimal interest)
 {
     base.Customer = customer;
     base.Balance = balance;
     base.InterestRate = balance > 1000 ? interest : 0;
 }
コード例 #7
0
 public DepositAccount(double balance, Customer customers, double interestRate)
     : base(balance, customers, interestRate)
 {
 }
コード例 #8
0
ファイル: Account.cs プロジェクト: nok32/SoftUny-HW
 public Account(Customer customer, decimal balance = 0, double interestRate = 0)
 {
     this.balance = balance;
     this.InterestRate = interestRate;
     this.Customer = customer;
 }
コード例 #9
0
ファイル: Account.cs プロジェクト: Dochko/SoftUni
 protected Account(decimal balance, decimal interestRate, Customer customer)
 {
     this.Balance = balance;
     this.InterestRate = interestRate;
     this.Customer = customer;
 }
コード例 #10
0
ファイル: Account.cs プロジェクト: alex687/SoftUni-Homeworks
 protected Account(Customer customer, decimal ballance, decimal interestRate)
 {
     this.ballance = ballance;
     this.customer = customer;
     this.interestRate = interestRate;
 }
コード例 #11
0
 protected Account(Customer customer, double balance, int interestRate)
 {
     this.Customer = customer;
     this.Balance = balance;
     this.InterestRate = interestRate;
 }
コード例 #12
0
ファイル: LoanAccount.cs プロジェクト: BAleksiev/OOP-Course
 public LoanAccount(decimal balance, decimal yearInterestInPercent, Customer customer)
     : base(balance, yearInterestInPercent, customer) { }
コード例 #13
0
 public DepositAccount(decimal balance, decimal interest, Customer customer)
     : base(balance, interest, customer) { }
コード例 #14
0
 public Account(Customer customer, int balance, double interestRate)
 {
     this.Customer = customer;
     this.Balance = balance;
     this.InterestRate = interestRate;
 }
コード例 #15
0
ファイル: LoanAccount.cs プロジェクト: KostaKanev/myCodes
 public LoanAccount(Customer customer, decimal balance, decimal interestRate)
     : base(customer, balance, interestRate)
 {
 }
コード例 #16
0
 public DepositAccount(Customer customer, decimal ballance, decimal interestRate)
     : base(customer, ballance, interestRate)
 {
     
 }
コード例 #17
0
 public Accounts(double balance, Customer customers, double interestRate)
 {
     this.Balance = balance;
     this.Customers = customers;
     this.InterestRate = interestRate;
 }
コード例 #18
0
ファイル: DepositAccount.cs プロジェクト: nok32/SoftUny-HW
 public DepositAccount(Customer customer, decimal balance = 0, double interestRate = 0)
     : base(customer, balance, interestRate)
 {
 }
コード例 #19
0
 public Mortgage(double balance, Customer customers, double interestRate)
     : base(balance, customers, interestRate)
 {
 }
コード例 #20
0
ファイル: MortgageAccount.cs プロジェクト: nok32/SoftUny-HW
 public MortgageAccount(Customer customer, decimal balance = 0, double interestRate = 0)
     : base(customer, balance, interestRate)
 {
 }
コード例 #21
0
ファイル: Loan.cs プロジェクト: MiroslavTonev/Homework-OOP
 public Loan(double balance, Customer customers, double interestRate)
     : base(balance, customers, interestRate)
 {
 }
コード例 #22
0
        public MortgageAccount(Customer customer, decimal ballance, decimal interestRate)
            : base(customer, ballance, interestRate)
        {

        }
コード例 #23
0
ファイル: Mortgage.cs プロジェクト: AdrianDamyanov/CSharpOOP
 public Mortgage(Customer customer, decimal balance, decimal interest)
 {
     base.Customer = customer;
     base.Balance = balance;
     base.InterestRate = interest;
 }
コード例 #24
0
        public DepositAcc(Customer customer, int balance, double interestRate) : base(customer, balance, interestRate)
        {

        }
コード例 #25
0
        public LoanAcc(Customer customer, int balance, double interestRate) : base(customer, balance, interestRate)
        {

        }
コード例 #26
0
ファイル: Account.cs プロジェクト: petar-rusev/OOP
 public Account(Customer customer, decimal Balance, decimal interest)
 {
     this.InterestRate = interest;
     this.Customer = customer;
     this.Balance = Balance;
 }
コード例 #27
0
ファイル: Account.cs プロジェクト: BAleksiev/OOP-Course
 protected Account(decimal balance, decimal yearInterestInPercent, Customer customer)
 {
     this.Balance = balance;
     this.MonthInterest = yearInterestInPercent / 12 / 100;
     this.Customer = customer;
 }