JAVA INHERITANCE
Inheritance in Java is a fundamental principal in OOP ( Object-Oriented Programming ) by which one class is allowed to inherit the properties (fields) and behaviors (methods ) of another class . A class that inherits the another class can reuse the properties of that class . Example : //Parent class class Gift {