Java Arena

Module 18

Getters, toString and bigger classes

Methods that give something back. Object methods that return values, getters and setters, toString, parameters and `this`, methods that call the object's own methods, a class that collects numbers and answers questions about them, and money kept in whole cents, since doubles aren't exact.

Steps

  1. Methods that return a value
  2. Getters
  3. toString
  4. Parameters and this
  5. Calling the object's own methods
  6. A class that remembers
  7. Money and rounding errors