Originally posted by Pankaj Patel:
Yes. I am hanging between nested class and inner class.
Telling in detail :
-> A inner class is a class defined in a class of interface.
-> A class can be called as nested class if it is static inner class.
So both inner class and nested class is different word. Am i right?
i just finished reviewing K&B chapter 8,
from my understanding inner class simply means a non-static class implemented in a class;
nested class , has to be static, not really a "class", but just another static member of a class; it doesnt have the relationship with the outer class, it cant use other members of the class.
i could be wrong, open to discuss