Name of the blog

Short description of the blog

What is difference between static class and sealed class

Sealed classes:

  1. Can create instances, but cannot inherit
  2. Can contain static as well as nonstatic members.

 

Static classes:

  1. Can neither create their instances, nor inherit them
  2. Can have static members only.

 

Add comment

biuquote
  • Comment
  • Preview
Loading