Discuss the ways in which inheritance saves time during program development and helps prevent errors.
Fill in the blank(s) with the appropriate word(s).
Inheritance allows developers to create derived classes that reuse code declared already in a base class. Avoiding the duplication of common functionality between several classes by building an inheritance hierarchy to contain the classes can save developers a considerable amount of time. Placing common functionality in a single base class, rather than duplicating the code in multiple unrelated classes, helps prevent the same errors from appearing in multiple source-code files and makes debugging easier. If
several classes each contain duplicate code containing an error, the software developer has to spend time correcting each source-code file with the error. However, if these classes take advantage of inheritance, and the error occurs in the common functionality of the base class, the software developer needs to modify only the base class’s code.
You might also like to view...
A cell background can be formatted by using the _____ button.?
A. ?Fill Color B. ?Gridline C. ?Orientation D. ?Borders
What usually follows the fact-finding meetings which follow a recovery, whether drill or real?
A) A walk-through test B) Blame for failure is assigned as needed C) Changes to the recovery plan D) A completely new recovery plan
In the Amazon RDS which uses the SQL Server engine, what is the maximum size for a Microsoft SQL Server DB Instance with SQL Server Express edition?
A. 10 GB per DB B. 100 GB per DB C. 2 TB per DB D. 1TB per DB
Which border-style keyword creates a three-dimensional border that appears to set the entire box into the page?
A. groove B. outset C. ridge D. inset