Java Inner Example -10 Program

Static Inner Class

Access Outer Class From Inner Class

PROGRAM 5: Access Outer Class From Inner Class example.

Java Anonymous inner class

Java Local inner class

data is 30
inside outerMethodx= 98
inside inner class Methodinside outerMethodThank you ,I hope this program tutorial clear to you .If any queries please comment.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store