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
Constructor to an arbitrary base constructor?
What is the difference between paramaterized constructor and copy constructor?
What is anonymous methods in c#?
what are some characteristics of an array?
Is c# substring zero based?
Describe two uses of the “using” statement during the operation of c#?
what is inheritance and an example in vb.net and c# of when you might use it?
What are the problem with .NET generics?
What is reference types in c#?
How to sign an assembly with strong name?
Why main is static in c#?
What is overriding in c#?
What is dll hell, and how does .net solve it?
What is use of private class in c#?
How to find the current application file path while runtime?