previous | start | next

Self Check

  1. Consider the deposit method of the BankAccount class. What is the scope of the variables amount and newBalance?
  2. What is the scope of the balance field of the BankAccount class?

previous | start | next