Question

Discuss the ways in which inheritance promotes software reuse, saves time during application development and helps...

Discuss the ways in which inheritance promotes software reuse, saves time during application development and helps prevent errors.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In object oriented programming inheritance is a concept in which one class can acquire state(properties) and behavior (operations or functionalities) of another class. with Inheritance Mechanism we can reuse the properties and methods of existing class.

By allowing programmers to create sub classes (derived classes) that can reuse code already defined in another class called super class (or base class).

Inheritance avoids the repetition or duplication of common functionalities or operations or methods among several classes.

By using a class Inheritance hierarchy the developers can save considerable amount of time.

By Using Inheritance it is possible to place common methods in a single class called super class, and all the derived classes can reuse these methods without redefining them in those classes. It helps prevent the same errors from appearing in multiple files of source code.

when there are errors in common functionalities, then developer needs to modify the code only in super class. therefore it saves the error correcting time also.

Add a comment
Know the answer?
Add Answer to:
Discuss the ways in which inheritance promotes software reuse, saves time during application development and helps...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT