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 a deadlock lock?
Explain about finalize method?
What benefit do you get from using a primary interop assembly (pia)?
Why do we use inheritance in c#?
Is nullable type c#?
Is cli same as the clr?
What is the difference between list and arraylist in c#?
List the difference between the virtual method and the abstract method?
Are tuples mutable c#?
Why do we need to serialize data?
What is better C# or VB.NET?
What is the difference between “dispose” and “finalize” variables in c#?
What is an escape sequence? Name some string escape sequences in c#.
Why do we need properties in c#?
In C#, explain the difference between overloading and overriding.