Object class Exercises

  < Previous  Next >
  1. What are two of the most commonly overridden methods from the Object class?
  2. Add an equals() method to your SimpleBankAccount, CheckingAccount and SavingsAccount classes from the Inheritance Exercises.
  3. Assume that the SimpleBankAccount class did not have an equals() method. Should you use the appropriate annotation in the child classes to designate that you're expecting this method to override another method? Think about it and then discuss it with someone else.