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

1 Expert Approved Answer
Step: 1 Unlock

The correct answer is Ahiding overriding When a class defines an instance variable with the same ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!