Saturday, November 28, 2015

Why can outer Java classes access inner class private members? - Stack Overflow

Why can outer Java classes access inner class private members? - Stack Overflow: "Otherwise, if the member or constructor is declared private, then access is permitted if and only if it occurs within the body of the top level class (§7.6) that encloses the declaration of the member or constructor."