I am writing some code and had a general question about python
If I have something like this:
class A():
def __init__(self):
self.name
...
def doSomething(self):
class B():
def __init__(self):
self.name
...
c = B()
c.whatever()
Does that mean that class B is private to that function only or can it be called from an instance of class A? On that note if I had some code like this:
class A():
class B():
def __init__(self):
self.name
def __init__(self):
self.name
...
def doSomething(self):
...
I can call it by doing this d = A.B() right?