What is the use of Inheritance?
Reduced project development time
both 1 & 2
There are many advantages of inheritance. 1. When the code that you want to write is already available then you can reuse that code, rather than rewriting the same code. 2. From the point 1, when you are reusing some code, obviously your project development time will be reduced.
Back To Top