Java Arena

Module 21

Designing classes and overloading

Designing classes of your own. Turning a program of plain variables into objects, deciding a class's instance variables, constructor and methods from a description, several constructors for one class, one constructor calling another with `this(...)`, and methods with the same name. The start of MOOC part 5.

Steps

  1. Turning a program into objects
  2. Designing a class
  3. Several constructors
  4. One constructor calling another
  5. Methods with the same name