PrepZone Logo
PrepZone
Back to Java

Java · Easy

Differentiate between HAS-A and IS-A relationships with examples.

JavaOOPInheritance

Answer preview

IS-A — represents inheritance: "Dog IS-A Animal" → class Dog extends Animal. Establishes a parent-child type hierarchy.…