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:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: