Initialization of object static members

前端 未结 7 1052
余生分开走
余生分开走 2021-01-24 21:51

Static members confuse me sometimes. I understand how to initialize a simple built in type such as int with something along the lines of int myClass::statVar

相关标签:
7条回答
  • 2021-01-24 22:39

    In cases such as these, singletons actually are your friends, despite their other drawbacks.

    0 讨论(0)
提交回复
热议问题