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

后端 未结 0 628
慢半拍i
慢半拍i 2021-02-11 20:27

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?

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