Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answer Posted / guest
Yes, just leave the class public and make the method sealed.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Is string mutable in c#?
What is the difference between virtual and override in c#?
Where do we use static class in c#?
What is option parameter in C#?
How to reverse each word in a string using c#?
Which programming language is best for desktop applications?
What is 8 bit signed integer?
What is the difference between “finalize” and “finally” methods in c#?
What is lazy t?
What is type class in c#?
What is difference between for and foreach in c#?
What is boolean method?
In .NET which is the smallest unit of execution?
What is the use of return in c#?
What is difference between event and delegate in c#?