Inheritance
Creating a new class (sub class) in such a way that acquires all the properties of another class (super class) is called is inheritance.
When the sub class is acquires the properties of super class by using the extends keyword is called is inheritance.
For ex —> Previously we are using keypad phone where we have features like we can make call and send massages but now we have smart phone in that we can make call, send massage as well as we also add some extra feature like real time call, sending photos and more so we inherit the features of keypad as well as we add some extra feature is called is inheritance.