CAN WE DECLARE A METHOD AS SEALED?

Sumit Kesarwani

Total Post:0

Points:0
Posted by  Sumit Kesarwani
C# 
C#
 1533  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    Can we declare a method as sealed?

     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.

      Modified On Mar-27-2018 04:37:52 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!