Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answer Posted / anubhav gupta
We can use shadowing concept.
For shadowing use New keyword in derived class method.
Through this we can prevent the method from being over
ridden.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Describe the difference between inline and code behind - which is best?
What are the different types of assembly?
List the 5 different access modifiers in c#?
What is deadly diamond problem?
Explain about accessibility modifier 'protected internal'?
What is the difference between values and reference types?
How do you sort an array in c#?
What is a collection in c#?
What is static and use of it?
What is a namespace server?
What is the use of parse in c#?
What is the difference between firstordefault and first?
Why do we use void in c#?
What is unrecognized escape sequence in c#?
Can struct be static in c#?