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 { } |
No comments:
Post a Comment