unless the access modifier allow this.



right. but also here the access depends on the access modifier the variable has been declared.