What is Inheritance

In our day to day life, we use a word inherit which simply means-‘to receive from an ancestor by legal succession or will’. We use this term generally in case where a child inherits his/her parents’ properties or where a parent-child relationship exists. This process of inheriting the properties is referred as inheritance. Similarly, in java the term inheritance, is also used where a parent child relationship exists, but instead of human beings here parent as well as child is a class. Inheritance is a concept using which a class can inherit the properties of another class. Inheritance allows the […]

What is Inheritance Read More »