Inheritance is the process of basing one class on another. In this process, a base class provides methods, properties, and other members to a derived class. The advantage of inheritance is that you can write and maintain code once it is in the base class and reuse it over and over in the derived classes
What you got from others is known as Inheritance. Inheritance is like share
properties between the Classes.
For instance, a "fruit" is a generalization of "apple", "orange", "mango" and
many others. One can consider fruit to be an abstraction of apple, orange, etc.
Conversely, since apples are fruit (i.e., an apple is-a fruit), apples may
naturally inherit all the properties common to all fruit, such as being a fleshy
container for the seed of a plant.
Inheritance is the main concept of object oriented programming language.. Inheritance means object of one class aquire the properties of another class.that's the base class is known as parent class and the secondary class is known as child class and child class can have some or all the functionality of parent class
Inheritance involves building upon an existing class so that additional or more-specialised functionality is added. A key design aspect of inheritance is that it is used in a manner which is understandable and supported by a clear, justifiable relationship.