Object-oriented programming (OOPs) Question:

Download Job Interview Questions and Answers PDF

What is Overriding?

OOP Interview Question
OOP Interview Question

Answer:

Method overriding is a feature that allows to invoke functions (that have the same signatures) and that belong to different classes in the same hierarchy of inheritance using the base class reference. In C# it is done using keywords virtual and overrides .

Download OOP Interview Questions And Answers PDF

Previous QuestionNext Question
What is Method overloading?Default Access modifiers in C#?