Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answer Posted / umesh
Yes, just leave the class public and make the method sealed.
Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
Explain the role of Garbage collector and its generations?
What is an enumerator c#?
What is type safe in c#?
Which is faster list or dictionary in c#?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
Which of these string definitions will prevent escaping on backslashes in c#?
How do you pronounce c#?
What is function and method in c#?
What is instantiating a class?
Why do we need indexers in c#?
Can you inherit multiple abstract classes in c#?
What is dataset and dataadapter in c#?
What is difference between managed and unmanaged code?
What does question mark mean in c#?
List the difference between interface and abstract class?