posted 1 week ago
Hi,
I came across this:
*Both Inner classes can access even private fields and methods of outer class
*Also the Outer class have access to private fields and methods of inner classes
---
First bullet point is clear because of lexical scoping. But how is it possible with second bullet point? I tried and it didn't work. For example:
If those bullet points were correct (to be exact 2nd one), shouldn't this work fine?
Thanks