A non-inheritable class and method

Introduction It’s a common question during interview why we should create non inheritable class. It’s answer also simple. We don’t want to make it inheritable. Details If you want to make a class non inheritable then you have to use sealed keyword in the C# class as follows. For VB.NET you have to use NotInheritable […]