Inheritance (Java)
Inheritance lets one class (the subclass) reuse and extend the fields and methods of another class (the superclass). You set it up with the extends keyword.
Inheritance lets one class (the subclass) reuse and extend the fields and methods of another class (the superclass). You set it up with the extends keyword.