How to access a variable in a method in a different class for example in this code.
#include using namespace std; class Student { public: