Fill in the blanks: A class that defines an instance variable with the same name as a

Question:

Fill in the blanks: A class that defines an instance variable with the same name as a variable in the parent class is referred to as ___________________ a variable, while a class that defines a static method with the same signature as a static method in a parent class is referred to as ___________________ a method.

A. hiding, overriding

B. overriding, hiding

C. masking, masking

D. hiding, masking

E. replacing, overriding

F. hiding, hiding

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: