Question: Assuming that class B inherits from class A and method foo belongs to class A , what do we mean by overriding method foo in
Assuming that class B inherits from class A and method foo belongs to class A what do we mean by overriding method foo in class B
Question Answer
a
We are calling method foo in class B
b
We are not using method foo in class B
c
We are replacing the superclass version of the foo method with a new foo method with the same signature.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
