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

No comments:

Code Review Best Practices: A Comprehensive Guide for US Business Owners

Code Review Best Practices Introduction to Code Review Code review is a systematic examination of computer source code with the goal...