Chapter 2: Classes and Objects in Java
The core of object-oriented programming: classes, objects, encapsulation, constructors, methods, and how Java manages object memory.
15 Topics
- 2.1 Classes & Objects
- 2.2 OOP Principles
- 2.3 Instantiation
- 2.4 Encapsulation
- 2.5 Specialization
- 2.6 Instance Variables
- 2.7 Class Variables
- 2.8 Constructors
- 2.9 Instance Methods
- 2.10 Class Methods
- 2.11 Method Overloading
- 2.12 The this keyword
- 2.13 Passing and returning objects
- 2.14 Garbage Collection in Java
- 2.15 Code Examples & Exercises