1. When you want to prevent an class from being inherited by another class, you should use “sealed” keyword in front of the class.
2. You can use the sealed keyword with properties and methods also. In this case, you should use sealed keyword with “override”.
3. You cannot use “abstract” keyword with sealed modifier.
0 comments :