what is the difference between a sealed class and a static class?
  1. A sealed class is a c# class which can't be derived by another c# class. sealed modifier is used to mark the class as a sealed class.
  2. A sealed class can be instantiated, but can't be inherited.
  3. A static class is a c# class which comprises of only static methods and members. The members of a static class are initialized at some random time before any member or method of it is first called.
  4. A static class can't be instantiated and also inherited, because it's marked static.

C# Concepts •  Added 24 days ago

Join the Newsletter

Subscribe to get our latest content by email.
    We won't send you spam. Unsubscribe at any time.
    We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept