What is a static constructor?

后端 未结 13 1868
天涯浪人
天涯浪人 2020-11-27 03:46

This question was asked to me in an interview:

What is a static constructor?

Does it exist in C++? If yes, please explain it wit

13条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 04:15

    See my answer to a similar question. C#'s static-constructor metaphor can be done in C++.

提交回复
热议问题