Explain why inheritance is useful.

What will be an ideal response?

Inheritance is useful because it allows for code-reuse. This means that if we have multiple software entities
that have common features, the code for the common features can be written once in a superclass. The classes that include
these features can then be written via inheritance, and this common code does not have to be rewritten.

Computer Science & Information Technology

You might also like to view...

Microsoft Office documents use the .odt extension

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ function category performs calculations such as averages and standard deviations

Fill in the blank(s) with correct word

Computer Science & Information Technology