How does constructor inheritance work in C++?

前端 未结 0 1867
我寻月下人不归
我寻月下人不归 2020-12-10 16:55

According to my research, C++ does not automatically inherit constructors in subclasses, so given the code below:

struct foo
{
    int a;
    int b;
    
             


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