Home »
MCQs »
C# MCQs
Is overriding of a function possible in the same class in C#?
74. Is overriding of a function possible in the same class in C#?
- Yes
- No
Answer: B) No
Explanation:
No, overriding of a function is not possible in the same class in C#. As per the explanation on MSDN – The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event.