When is it necessary to use constructors and descructors in C++?

后端 未结 0 1485
夕颜
夕颜 2021-02-13 22:07

I read that it is not always necessary to create a constructor and destructor for your classes in C++. When is it necessary? For instance, in this dog example it works the exact

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