Multiple Choice
To avoid duplicating code,use ________,rather than ________.
A) inheritance,the "copy-and-past" 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
Q1: When a subclass constructor calls its superclass
Q5: Private fields of a superclass can be
Q6: Class _ represents an image that can
Q7: An advantage of inheritance is that:<br>A)All methods
Q9: Inheritance is also known as the<br>A) knows-a
Q10: Which of the following is not a
Q10: Which statement is true when a superclass
Q14: Which method changes the text the label
Q14: Using the protected keyword gives a member:<br>A)public
Q15: Which of the following statements is (are)true?