Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answer Posted / sujai cn
By using NEW key word with implementation of method (which
is declared as virtual in base class) in the derived class
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the top reason to use c# language?
Why is it important to override gethashcode when equals method is overridden?
How do switch statements work?
What is the difference between static and private constructor in c#?
What are Regex / regular expressions ?
What is continue in c#?
What does executescalar return in c#?
How do you escape c#?
How do I port "synchronized" functions from visual j++ to c#?
Can we assign null value to integer?
What is static class in C#?
What is Covariance and contravariance in C#?
What is the use of console?
Explain different properties of object oriented systems.
What is static variable in c#?