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

What will be an ideal response?

Inheritance allows developers to create subclasses that reuse code declared already in a superclass. Avoiding the duplication of common functionality between several classes by building a class inheritance hierarchy can save developers a considerable amount of time. Similarly, placing common functionality in a single superclass, rather than duplicating the code in multiple unrelated classes, helps prevent the same errors from appearing in multiple source-code files. If errors occur in the common functionality of the superclass, the software developer needs to modify only the superclass’s.

Computer Science & Information Technology

You might also like to view...

When using Remote Assistance, what can someone do that is using an earlier Windows operating system?

A) Use Help and Support B) Use Online Help C) use Easy Connect D) use an invitation file

Computer Science & Information Technology

Which of the following forensic tools can be used to analyze the Windows Registry and crack passwords?

a. Disk Investigator b. Access Data FTK c. Disk Digger d. Sleuth Kit

Computer Science & Information Technology