Here is a class:
class P1{
public:
P1(int i){}
};
Here is another class:
class P2{
public:
P2(int i){}
};
Here is a class that inherits from the two classes above:
class D: public P1, public P2{
//?
};
Did I inheirt the constructors of the two classes as well?
How can I edit class D, so that I can construct the derived class in the following way:
D d(11,22);