I have a structure similar to the following:
class Foo{
class Bar{ ... }
private class Baz{ ... }
}
Foo
and Bar
need access to Baz
, but Baz
needs to remain private to both the module and and other modules importing it.
Questions:
- Is there any way to share
Baz
toFoo
andBar
?' - Is there any other class structure that I could use that would allow the wanted access?