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