← Tech dictionaryLearn it properlyOOP tutorials — free, with diagrams, quizzes and a certificate
Programming & OOP
What is Inheritance?
Inheritance lets a class (subclass) reuse and extend the fields and methods of another class (superclass), modelling an "is-a" relationship.
Example
class Car extends Vehicle — a Car is a Vehicle and inherits its start() method.