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
Can we have multiple constructors in a class c#?
What is the difference between new and override in c#?
What are types in c#?
Can we inherit class that contains only one private constructor?
Why linq is having select clause at the end?
Why c# is called type safe language?
Why do we need a singleton class?
Why do we need serialization?
Can a constructor be private in c#?
What is yield in c#?
What is byte c#?
What are handlers in c#?
Explain about Serialize and MarshalByRef?
Why singleton is sealed?
What is static class in C#?