MS Dot Net
Monday, January 14, 2019
Sealed Keyword in C#
Sealed Class
– if this keyword is used on a class then it will not allow to inheritance that class and if it is used on method then it will restrict the override of that method.
Sealed Method -
Sealed method will prevent method from overridden.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment