Thursday, May 31, 2018

What are Static classes?

Static classes are used to create data and functions that can be accessed without creating an instance of the class. We use them when there is no data or behavior in the class that depends on object identity. So they: 
  • Only contain static members.
  • Cannot be instantiated.
  • They cannot contain Instance Constructors
  • Are sealed.

No comments:

Post a Comment