Why are static classes used?

后端 未结 6 1050
故里飘歌
故里飘歌 2021-01-17 23:23

I have doubts on static class and static methods. From MSDN I understood that \"Static classes and class members are used to create data and functions that can be accessed w

6条回答
  •  迷失自我
    2021-01-18 00:08

    Static Classes globalizes a particular variable which makes it easier to handle during the code. Hence at basic level we prefer using Static Classes.

提交回复
热议问题