#include <iostream>
using namespace std;
class A
{
public:
class B
{
public:
B()
{
cout << "B is called "<< endl;
}
};
A()
{
cout << "A() is called" << endl;
}
};
int main(int argc,char *argv[])
{
A::B b;
A a;
return 0;
}
using namespace std;
class A
{
public:
class B
{
public:
B()
{
cout << "B is called "<< endl;
}
};
A()
{
cout << "A() is called" << endl;
}
};
int main(int argc,char *argv[])
{
A::B b;
A a;
return 0;
}