S
Sum
I have a class that looks like this
class ClassNesting {
class Nest1{
class Nest2{
class Nest3{
String str;
String getStr(){
return str;
}
}
}
}
I want to access str in the constructor ClassNesting() to set it. I
don't want to change the access modifiers for anything. I guess I need
to figure the theory out for this. Any help? How can I do that?
Thanks!
class ClassNesting {
class Nest1{
class Nest2{
class Nest3{
String str;
String getStr(){
return str;
}
}
}
}
I want to access str in the constructor ClassNesting() to set it. I
don't want to change the access modifiers for anything. I guess I need
to figure the theory out for this. Any help? How can I do that?
Thanks!