Originally posted by Nareshreddy Kola:
Method invocations allowed by the compiler are based solely on the declared type of the reference, regardless of the object type. I hope this should answer your question.
It means that, The inner class method can access and use the the outer class method but it does not has that method like in the inheritance. So we can not access the outer class method using inner class object reference. Am i right ?