+ 1

Difference between sealed class and partial class

22nd Dec 2020, 2:01 PM
Anchal Balodi
Anchal Balodi - avatar
2 Answers
+ 4
These are to totally different things. A sealed class is is a class that does not allowed to be inherited from. You can make instances of this class but you cannot use it a a base class. https://www.c-sharpcorner.com/article/sealed-class-in-C-Sharp/ A partial class is a class that can be divided across multiple files. You can make instances from this class and also inherited form this class. https://www.geeksforgeeks.org/partial-classes-in-c-sharp/
22nd Dec 2020, 4:32 PM
sneeze
sneeze - avatar
+ 3
22nd Dec 2020, 2:18 PM
Alphin K Sajan
Alphin K Sajan - avatar