C# vs C++ Inheritance Instance Assignment

后端 未结 0 762
花落未央
花落未央 2021-02-07 03:55

In C# I believe you can do this:

Derived derived = new Base();

How would you emulate this in C++? Would it require a copy constructor? Would you

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