class Worker:
name = ""
def __init__(self, name):
self.name = name
def show(self):
print("the name is: " + self.name)
def __private_method_test(self):
print("__private_method_test")
tom = Worker("Tom")
tom.show()
# private method cannot be called directly, only from within the class.
# tom.__private_method_test()
'''
run:
the name is: Tom
'''