Chapter 5: Classes Part 2
Major Concepts
When you have completed this chapter, you should be familiar with the following:
- How to customize fields with the keywords
final
andstatic
. - How to add methods to a class and call those methods.
- The difference between instance methods and static methods.
- How to override the default
toString
andequals
methods for a class. - How to auto-generate an
equals
method using the tools in IntelliJ.
Key Terminology
- Final Field
- Final Primitive Field
- Final Object Field
- Static Methods
- Class Methods
- Overriding
- Cast
- Equality
- Identity