Can you allow class to be inherited, but prevent the method from being over-ridden?

 Posted by Bharathi Cherukuri on 3/16/2012 | Category: C# Interview questions | Views: 1831 | Points: 40

Yes, we can allow the class to be inherited without over-riding the method.
Just leave the class as public and make the method sealed.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response