#include <iostream>
class B
{
public:
void funcB()
{
std::cout << "B::funcB()" << std::endl;
}
};
class A
{
public:
B obj1;
};
class C
{
public:
void funcC()
{
A a;
a.obj1.funcB();
}
};
int main()
{
C c;
c.funcC();
}
CiNpbmNsdWRlIDxpb3N0cmVhbT4KCmNsYXNzIEIKewpwdWJsaWM6Cgl2b2lkIGZ1bmNCKCkgCgl7CgkJc3RkOjpjb3V0IDw8ICJCOjpmdW5jQigpIiA8PCBzdGQ6OmVuZGw7Cgl9Cn07CgoKY2xhc3MgQQp7CnB1YmxpYzoKCUIgb2JqMTsKfTsKCmNsYXNzIEMKewpwdWJsaWM6Cgl2b2lkIGZ1bmNDKCkKCXsKCQlBIGE7CgkJYS5vYmoxLmZ1bmNCKCk7Cgl9Cn07CgppbnQgbWFpbigpCnsKCUMgYzsKCWMuZnVuY0MoKTsKfQ==