Monday, January 14, 2019

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 - Sealed method will prevent method from overridden.


No comments: