Part 2: Object-Oriented Programming
In this part, we will take a deep dive into Object-Oriented Programming (OOP). We will start by looking at classes and their relationship with objects. We will discuss the first core pillar of OOP, namely Encapsulation. Enums and records, both of which are closely related to classes, will also be covered. We will then move on to the remaining two major pillars in OOP, namely Inheritance and Polymorphism. Next up are abstract
classes and the hugely important interface
construct. Following that, we will examine Java’s exception framework. Lastly, we will explore selected classes from the Java Core API, such as String
and StringBuilder
.
This section has the following chapters:
- Chapter 8, Classes, Objects, and Enums
- Chapter 9, Inheritance and Polymorphism
- Chapter 10, Interfaces and Abstract Classes
- Chapter 11, Dealing with Exceptions
- Chapter 12, Java Core API