Can you allow a class to be inherited, but prevent the method from being over-ridden?
Interview question and answer by:
Raja | Posted on: 4/27/2008 | Category:
C# Interview questions | Views: 3454 |
Answer:
Yes. Just leave the class public and make the method sealed.
Source: http://blogs.crsw.com/mark/articles/252.aspx |
Asked In: Many Interviews
|
Alert Moderator
Found interesting? Add this to: