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
What is a int in c#?
What is ControlBox Propertie
Can I use parseint?
What operator means?
What is linq c#?
What is the difference between int.parse and int.tryparse methods?
list the steps in code compilation in c#?
What is lazy in c#?
What are extender provider components?
How do you achieve polymorphism in c#?
Can you pass value types by reference to a method?
Why constructor is used in c#?
What is sorted list in c#?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
What is difference between the "throw" and "throw ex" in .net?