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
Q2: Which of the following keywords allows a
Q7: Which of the following is not a
Q7: Which superclass members are inherited by all
Q9: When a subclass constructor calls its superclass
Q9: Inheritance is also known as the
A) knows-a
Q12: Private fields of a superclass can be
Q12: Which of the following is an example
Q16: Which of the following statements is false?
A)
Q19: Which statement is true when a superclass
Q20: An advantage of inheritance is that:
A)All methods
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents