import java.util.*; import java.lang.*; class Outer_demo { int num=23; // i want to excess this element... how to do that? public class Inner_demo { int num=113; public void print() { System.out.println("this is an inner class with num value " + num); // here num value will be 113 .... } } //inner class ends void display_inner() { Inner_demo e = new Inner_demo(); e.print(); } }
num
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)