Use of Sealed class

By j Miracle

Here i will show what is the use of Sealed class.

Sealed class is used to restrict the user from inheriting in another class.

For defining sealed class, you have to define a class with prefix sealed keyword.

Once you define a class with sealed keyword, user can not inherit further.

How to create:

sealed class Sealedclassdeom

{

}

Use of Sealed class  (996 Views)