Question #192396

8. When overriding a method, where should the new method be defined? Please select "A, B, C, D, or E" as correct option. 


A. In the superclass

B. In the main class

C. Outside the main class

D. In the subclass

E. Whichever class the programmer prefers


Expert's answer

Answer

D. In the subclass

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS