Multiple Choice
To avoid duplicating code, use ________, rather than ________.
A) inheritance, the "copy-and-past" approach.
B) the "copy-and-paste" 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
Q7: Using the protected keyword also gives a
Q8: Which superclass members are inherited by all
Q9: Inheritance is also known as the<br>A) knows-a
Q10: Which statement is true when a superclass
Q11: The default implementation of method clone of
Q13: Which of the following is the superclass
Q14: Which of the following is not a
Q15: Which of the following statements is false?<br>A)
Q16: The default equals implementation of class Object
Q17: When a subclass constructor calls its superclass