Answers for "c++ do you not inherit constructor"

C++
0

c++ do you not inherit constructor

class A
{
    public: 
        explicit A(int x) {}
};

class B: public A
{
     using A::A;
};
Posted by: Guest on June-17-2020

Browse Popular Code Answers by Language