In Java, inheritance in OOP allows one class (the subclass) to inherit the properties and behaviors (fields and methods) from another class (the superclass) with the help of extends keyword
In multilevel inheritance, a class inherits from another class, and then another class inherits from it, forming a chain of inheritance