Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mr.f
This problem is very easy, You just declared the method
without virtual keyword. :d
Is This Answer Correct ? | 5 Yes | 5 No |
Answer / nkm
Class can be MustInherit and method can be NotInheritable
(VB.NET Concept)
Is This Answer Correct ? | 0 Yes | 1 No |
Can namespace contain the private class?
What is default access specifier for class in c#?
Explain About Postback
Is string a primitive data type in c#?
What does readonly mean in c#?
Why do we use classes?
What is data set in c#?
What is the difference between CreateObject() and GetObject()?
How does insertion sort work?
What is the max value of int32 in c#?
What is ado net in c#?
What?s a satellite assembly?