What are the ways by which you can make sure that a class can not be inherited by other classes?
Manas Ranjan Dash
Select an image from your device to upload
Only By Using the Sealed Class or by creating the Private Constructor of it.
1)By using Static Class
2)By using Sealed Class.
above both classes cannot be Inherited
i) make it sealed (C#)ii) Declare the constructor as private.