Why can we access a variable in an inner class from an outer class?
<p>If I declare a variable as private in an inner class, the variable is visible to the outer class. I am unable to understand the logic here. Shouldn't it ideally be only accessible within an inner class?</p>
