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
So what makes your code really object-oriented #?
What are expressions c#?
What are the 3 types of comments in c#?
Explain the differences between static, void and public in c#?
How do I do a case-insensitive string comparison?
Why delegates are safe in c#?
What is sqlcommand in c#?
What is cshtml extension?
What are the different types of classes in c#?
What is serialization in dot net?
Explain clr in brief.
How do I start a program in c#?
What is an xsd file?
What is the difference between Static, Const and read only?
What is lazy loading entity framework?