What is difference between static function and sealed funtion in c# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is difference between static function and sealed funtion in c#

29th May 2017, 10:56 AM
mirza arslan
mirza arslan - avatar
2 Answers
+ 1
static are methods and members that belong to the class and not to a instance of the class. a sealed class can have methods and members that belong to a instance of the class. sealed means you can create instances of the class. but you may not derive another class of this class. https://www.dotnetperls.com/sealed
30th May 2017, 9:30 PM
sneeze
sneeze - avatar
0
nice elaboration.
30th May 2017, 9:41 PM
mirza arslan
mirza arslan - avatar