After learning the protective principles of Object-Oriented Programming (OOP)—Data Hiding, Abstraction, Encapsulation, and Tightly Encapsulated Classes—it's time to explore how classes relate to each other.

Java provides two primary relationships between classes:



IS-A Relationship (Inheritance) ← This article

HAS-A Relationship...