单项选择题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.