Why are static classes used?

后端 未结 6 1048
故里飘歌
故里飘歌 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:01

    IMO static classes are procedural programming in disguise. Not necessarily a bad thing, but it's not very OOPly. Watch out for the functional decomposition antipattern.

提交回复
热议问题