In my class i have vector<Person*>members; as a private member. Is there any way I can access the information out of this vector even though it is private?
class test
{
public:
//....
private:
vector<Person*>members;
};
I've tried accessing it w/ test.members;, but the compiler does not let that go through. I'm very confused at all this....
I know that it's near impossible to access things in the private area of classes, but everything has been stored in vector<Person*> members;
class test
{
public:
//....
private:
vector<Person*>members;
};
I've tried accessing it w/ test.members;, but the compiler does not let that go through. I'm very confused at all this....
I know that it's near impossible to access things in the private area of classes, but everything has been stored in vector<Person*> members;