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
What is session and cookies in c#?
What is use of hashtable in c#?
What is difference between method and function in c#?
Can you have parameters for static constructors?
What is c-sharp (c#)?
What is the default value of string in c#?
What is the difference between CreateObject() and GetObject()?
Is python easier than c#?
What are the advantages of using delegates in c#?
Can you use foreach iteration on arrays in c#?
How long can loop recorders stay in?
What is a c# delegate?
What is the use of system.environment class in c#.net?
What is the use of command builder?
Why do we use lambda expression in c#?