What is static class.

=> A class can be declared static indicating that it contains only static members. It is not possible to create instance of a static class using the new keyword. Static class are loaded automatically by the .Net framework common language run time(CLR). 

The main feature of static class is :-


  • They only contain static members.
  • They can't be instantiated.
  • They are sealed.
  • They can't contain Instance constructor.

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2019 HART™ is a registered trademark.