What is need foe the Inheritance in though we can access any method of any class declared publicly in simple class calling.
With inheritance if you need to change a function common to all the decedents of a given class you can, easily do it. It also makes writing the class easier.
For more information, have a look at the following link:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.