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#?

  1. Yes
  2. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.