adspace


Explain the advantages of inheritance.

Answer Posted / Peer Golden Hansda

1. Code Reusability: Inheritance allows developers to reuse code written for a parent class in child classes, reducing the amount of time and effort required to develop similar functionality for multiple classes.
2. Improved Modularity: By organizing code into base classes and derived classes, inheritance makes it easier to create modular programs that are easier to maintain and debug.
3. Polymorphism: Inheritance enables polymorphism, allowing objects of different classes to be treated as if they were instances of a common superclass.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

2278


Please send ford technologies placement paper 2 my mail id

2177