B 3.2.1 Worksheet Java Answers
1. Define Inheritance: In your own words, explain what inheritance is in object-oriented programming and why it is useful. Answer: Inheritance is a fundamental concept in OOP where a new class (subclass or derived class) can be created from an existing class (superclass or base class). The subclass inherits the attributes (data) and methods (behavior) of the superclass. This is useful because it promotes code...