The modifier used to hide the base class methods is?

Tam ca

New member
The modifier used to hide the base class methods is?
A. Virtual
B. New
C. Override
D. Sealed
 
Answer: b
Explanation: Used in condition when we cannot use virtually to override a base class method. Hence, we use ‘New’ to hide the base class methods and redefine the method defined in the subclass.
 

Tìm kiếm

Back
Top