public class A {
private String str;
public void setString(String pStr){
str = pStr;
}
private class B {
public String getStr(){
return str;
}
}
}
a)What is the relation between class A and class B ? b)And why Class B can access private field of A (str) ?
Is it derived or other else?