Chapter 3: Implementing Classes
Terminology
- Encapsulation - hiding unimportant details
- Abstraction - thinking about the essence of a concept
Class Definition Components
- Class name
- Constructors
- Methods
- Instance fields
Javadoc Comments
- /** comment format */
- @param tag
- @return tag
- Comment every class, method, parameter and return value
Lecture Code