InterviewSolution
| 1. |
What Is Inheritance In Java? |
|
Answer» Inheritance is an Object oriented feature which allows a class to inherit behavior and DATA from other class. For EXAMPLE, a class Car can extend basic feature of Vehicle class by using Inheritance. One of the most INTUITIVE examples of Inheritance in the real world is Father-Son RELATIONSHIP, where Son inherit Father's property. If you don't know, Inheritance is the QUICK way to become rich. Inheritance is an Object oriented feature which allows a class to inherit behavior and data from other class. For example, a class Car can extend basic feature of Vehicle class by using Inheritance. One of the most intuitive examples of Inheritance in the real world is Father-Son relationship, where Son inherit Father's property. If you don't know, Inheritance is the quick way to become rich. |
|