After i create an array of a class object how do i access a private member of an element of the array ??
example:
class student
{private:
int ID;
char name;
public:
get_data();
print();
};
student stan[10];
how do i access stan[2].id if i want to change that id # alone ?
I would appreciate the help.
thanks
Stan