OThers 12 - python class
Public and Private
class M():
def public(self):
print('You can see me!')
def _private(self):
print('You cannot see me!')
m=M()
m.public()
>>You can see me!
m._private() ???
>>'You cannot see me!'
class M():
def public(self):
print('You can see me!')
def _private(self):
print('You cannot see me!')
m=M()
m.public()
>>You can see me!
m._private() ???
>>'You cannot see me!'