Friday, December 22, 2017

C# reminder of the day sealed

When the keyword "sealed" is applied to a class, the sealed modifier prevents other classes from inheriting from it. In the following example, class B inherits from class A, but no class can inherit from class B Code sample class A {} sealed class B : A {} Source - MSDN
Post a Comment