How to forbid the use of the default constructor in C++?

后端 未结 0 2016
攒了一身酷
攒了一身酷 2021-02-11 20:47

I don\'t want to make it possible in my program to create an object without passing arguments to the constructor.

Is there a way?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题