Multiple Choice
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.
Correct Answer:

Verified
Correct Answer:
Verified
Q33: Overriding a method differs from overloading a
Q34: Which of the following pairs demonstrates the
Q35: An advantage of inheritance is that:<br>A) all
Q36: The protected members of a class may
Q37: When a derived class constructor calls its
Q39: How can a derived class call a
Q40: private fields of a base class can
Q41: A base class's constructors are inherited into
Q42: Every object of a base class is
Q43: A key to improving the software development