I have a class called Rectangle that contains a public method:
Expand|Select|Wrap|Line Numbers
- bool contains(int x, int y);
From a totally different class, Compund, I now want to loop through a vector<Component*> and call the method contains with the appropriate arguments.
I get an error telling me:
Expand|Select|Wrap|Line Numbers
- ../Rectangle.h:11: `bool Rectangle::contains(int, int)' is inaccessible
- ../Compound.cpp:43: within this context
Any ideas?
Cheers