previous | start | next

Self Check

  1. Can you use a cast (BankAccount) x to convert a Measurable variable x to a BankAccount reference?
  2. If both BankAccount and Coin implement the Measurable interface, can a Coin reference be converted to a BankAccount reference?

previous | start | next