Source:
http://blogs.sun.com/darcy/entry/nested_inner_member_and_top
How are member classes different from nested classes (a static or non-static class declared within another class)? Article at the above mentioned link states that:
a member class -> must have a declaring class
an inner class -> must have an enclosing class.
I understand what the static and non-static inner classes are. The following code examples defines a static and non-static inner class.
Can someone please explain what is a member class? I could not make much of the following from the
Java Language Specification
doc:
8.5 A member class is a class whose declaration is directly enclosed in another class or interface declaration.
cheers
Andy