Chapter 5: Classes Part 2

Major Concepts

When you have completed this chapter, you should be familiar with the following:

  1. How to customize fields with the keywords final and static.
  2. How to add methods to a class and call those methods.
  3. The difference between instance methods and static methods.
  4. How to override the default toString and equals methods for a class.
  5. How to auto-generate an equals method using the tools in IntelliJ.

Key Terminology

  1. Final Field
  2. Final Primitive Field
  3. Final Object Field
  4. Static Methods
  5. Class Methods
  6. Overriding
  7. Cast
  8. Equality
  9. Identity