previous | start | next

Self Check

  1. Why did the second parameter of the transfer method have to be of type BankAccount and not, for example, SavingsAccount?
  2. Why can't we change the second parameter of the transfer method to the type Object?

previous | start | next