1. 学习
  2. /
  3. 项目
  4. /
  5. Case Study: Building Software in Python

Connected

练习

Add a method to an inherited class

Let's add a method to the MortgageCalculator to calculate the monthly payment given a principal amount, an annual interest rate, and the number of years to pay off the loan.

说明 1 / 共 3 个

undefined XP
    1
    2
    3
  • Divide numerator by denominator and save the result to multiplier.