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
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
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
The correct answer is Ahiding overriding When a class defines an instance variable with the same ... View full answer
Get step-by-step solutions from verified subject matter experts
