C++ ctor
// A:
// no default ctor
// with copy ctor
class A
{
public:
explicit A(int)
{}
};
//B:
// no default ctor
// no ctor from int
// with copy ctor
class B: public A
{
};
int main()
{
//A a; //fail
A a(1); //ok
A a2(a); //ok
//B b(1); //fail
//B b; //fail
B *pb = (B*)0;
B b(*pb); //OK
}