We cannot access a private variable of a class from an object, which is created outside the class, but it is possible to access when the same object is created inside the cl
if accessing outside the class is the option required then try properties.