Java Arena

Module 23

Objects working together

Objects that use other objects. Objects as method parameters, an object as an instance variable of another object, methods that compare two objects of the same class, writing equals and how lists use it, methods that return new objects, and programs of several classes working together. The end of MOOC part 5.

Steps

  1. An object as a parameter
  2. An object inside an object
  3. Comparing with another object of the same class
  4. Equal objects
  5. equals and lists
  6. Methods that return objects
  7. Several objects working together
  8. Putting it all together