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.
You might also like to view...
The loop body of a Do…Loop While statement always executes __________.
a) zero times b) at least once c) more than once d) undeterminable
A Word document can be converted into HTML without losing any aspect of the original document.
Answer the following statement true (T) or false (F)
A(n) ________ is a small photographic print inserted into a projector that uses light to project the image on a wall or a screen displayed in front of a wall
A) slide B) layout C) overhead D) transparency
In Jewish color symbolism blue represents _____________.
a. sky and water b. the earth and land c. cold and ice d. sadness and loss