To avoid duplicating code (and possibly errors), use ________, rather than ________.

a) inheritance, the “copy-and-paste” approach.
b) the “copy-and-past” approach, inheritance.
c) a class that explicitly extends object, a class that does not extend object.
d. a class that does not extend object, a class that explicitly extends object.


a) inheritance, the “copy-and-paste” approach.

Computer Science & Information Technology

You might also like to view...

Write a function called leftmatch that works similarly to the rightmatch function developed in Exercise 3. Its two arguments should be as follows:

leftmatch pattern value Here are some example uses: $ leftmatch /usr/spool/ /usr/spool/uucppublic uucppublic $ leftmatch s. s.main.c main.c $

Computer Science & Information Technology

FTTH uses fiber-optic cables

Indicate whether the statement is true or false

Computer Science & Information Technology

The mouse pointer in Excel turns into a block arrow whenever it is located in a cell on the worksheet.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

All of the following are power plans built into your computer EXCEPT _____.

A. balanced B. power saver C. energy saver D. high performance

Computer Science & Information Technology