Solved

Assuming That Class B Inherits from Class a and Method

Question 3

Multiple Choice

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?


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.

Correct Answer:

verifed

Verified

Related Questions