package org.example; public class OuterClass { // member of the outer class private int outerField; // not assigning value // value assigned 60 // Member Inner Class public class InnerClass { public void accessToTheOutField() { outerField = 30; System.out.println("Outer Field Value: " + outerField); } } // InnerClass // Runtime Function main() public static void main(String[] args) { OuterClass outerClass = new OuterClass(); // memory OuterClass.InnerClass innerClass = outerClass.new InnerClass(); innerClass.accessToTheOutField(); } // main() } // OuterClass