hi! in the given code at //1, it tries to access the private method of class Inner. As private methods are visible only within the class, then how can we access it outside the class??
thanx.
ashok.
________________
class fort {
public static void main(
String args[]) {
Inner ob = new fort().new Inner();
ob.show(); //1
}
class Inner {
private void show() {
System.out.println("show in inner");
}
}
}