Method overriding in C# | OOP in C# Part-20


What is Method Overriding?

Method overriding is a language feature that allows a subclass to override a specific
implementation of a method that is already provided by one of its super-classes.
A subclass can give its own definition of methods but need to have the same signature as the
method in its super-class. This means that when overriding a method the subclass's method has
to have the same name and parameter list as the super-class's overridden method.

Post a Comment

Previous Post Next Post