Which class in C#.Net can not be inherited?
Naitik Jani
We cannot inherit from a sealed class,static class and a class which have private constructor
Sealed class can't be inherited.
We cannot inherit Sealed classes. If a class declared with Sealed key word then that class cannot be inherited by any other class.
In C# .Net We know that if We use Static Class then we can't be inherited that class. in other word we can also called sealed class.
Sealed Class Can Not Be Inherited...
sealed class
Sealed class. Static class
sealed class restrict user from inherit class.
Sealed Class
Sealed class can not inherited because we use security purpose use sealed class.Static class also can't inherited to another class as well as can't create object.
Sealed and static class can't be inherited.
sealed class.
A static and Sealed classes cannot be inherited .
class having only private constructor can't be inherited
A Static class and a Sealed class cannot be inherited.
Sealed class cannot be inherited.
Class that are marked with the sealed (C#) or NotInheritable (VB.NET) keywords cannot be inherited from. This is done at the definition of the classes. The most commonly used sealed class is System.String.
Hello Naitik,In c# if your marked your class as Sealed. In that case you have prevent your class not getting inherited.
only Sealed not abstract class,abstract class are parent class so they are inherited
sealed class can not be inherited
Sealed class
A Class that are marked with the "sealed" keyword can't be inherited in C#.Net Happy Coding :)
sealed Class can not be inherited
abstract class
abstract class and those class having sealed keyword is also not inherited
Abstract Class
Sealed class..
Sealed class can not inherited
sealed class in C# and NotInheritable class in VB.NET
Sealed class we can't inheritant.