#include <iostream>

using namespace std;

class A
{
public:
    A(){cout << "i get this default constructor when I create a B" << endl;}
    A(int i){cout << "this is the constructor i want when I create a B" << endl;}
};

class B
{
    A a;

    public: B() : a(5) {}
};

int main()
{
    B *ptr = new B;
    return 0;
}