B. Write A JAVA Program To Implement Inner Class and Demonstrate Its Access Protection.
B. Write A JAVA Program To Implement Inner Class and Demonstrate Its Access Protection.
Output:
Accessing from outer class
The value of outdata is 10
The value of indata is 20
Accessing from inner class
The sum of indata & outdata is 30