Sealed Keyword in C#


Sealed Class– if this keyword is used on a class then it will not allow to inheritance that class and if it is used on method then it will restrict the override of that method.


Sealed Method -This keyword is basically used to restrict a class for inheritance and  preventing the inheritance  Cannot be inherited


Comments

Popular posts from this blog

SSIS Merge Join - Both inputs of the transformation must contain at least one sorted column, and those columns must have matching metadata SSIS

jsGrid

Web scraping through WebBrowser (.Net WinForm Control)