Static vs Instance Methods
Understand when to use static versus instance members and how calls differ.
What does static mean?
Idea: Static members belong to the class. Instance members belong to each object.
Instance members
Instance methods use per-object state. Call them on variables like user.login().
All lessons in this course
- Pass-by-Value in Java
- Static vs Instance Methods
- Method Decomposition & Clean Code