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