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
Are c# strings immutable?
What does the keyword “virtual†declare for a method or property?
Explain publishers and subscribers in events.
In which order the destructor is called for an inherited class?
How does bubble sort work?
What is difference between destructor and finalize?
Why do we use threads in c#?
What is reference c#?
What is default constructor c#?
What is instantiating a class in c#?
What is console read in c#?
What are sorted lists?
What is a partial method?
Can class inherit from struct c#?
Is string a class in c#?