#include <iostream>
using namespace std;
class A {
public:
int a;
int getB() {
return B::b;
}
class B {
public:
B() {
b = 1;
}
int b;
};
};
int main()
{
A a;
cout << a.getB();
return 0;
}
Login in to like
Login in to comment