I am a little confused with class scope. Lets say that you have a class.
//file.h
struct B
{
int BB;
char CC;
};
class A
{
public:
struct B *getStructure();
private:
int number;
};
I dont understand what is the difference between putting struct B inside the class or outside the class. From what I understand if I put the structure inside the class then other classes won't be able to acces that structure. So other classes can't access data types that you create within your class?? Isn't (int number) a data type that other classes can access? Any help clarifying this would be much appreciated. Thanks.