Is it possible to access data outside a class?
Yes, the public members can be accessed by member functions of the class and non member function (outside the class) of the class.