My Project
Example2.cpp
void example2()
{
A a;
int id = a.getId();
B b(id);
b.func1();
b.func2(8);
}