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
How can you achieve run time polymorphism in C#?
What is datagrid c#?
Why delegates are type safe?
Is dll a library?
What is using keyword?
Why we use dll in c#?
What is a hash table in c#?
What is public void in c#?
What is the do while loop code?
What is difference between for and foreach loop in c#?
What are the different states of a thread?
Can you inherit from multiple classes in c#?
What are the fundamental oop concepts?
What is an inheritance in c#?
Why do we need singleton pattern in c#?