Home > DeveloperSection > Interviews > Can we declare a method as sealed?

Posted on    January-27-2014 11:06 PM

 C# C# 
Ratings:
 1 Answer(s)
  1168  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    January-27-2014 1:00 AM

 In C# a method can't be declared as sealed. However when we override a method in a derived class, we can declare the overridden method as sealed. By declaring it as sealed, we can avoid further overriding of this method.

Don't want to miss updates? Please click the below button!

Follow MindStick