What is method hiding in C#?

Junior C#

Answer

Method hiding occurs when a derived class defines a method with the same name as the parent class but does not override it.

The new method hides the parent method when accessed via the derived type.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice