class Worker:
name = ""
def __init__(self, name):
self.name = name
def show(self):
print("the name is: " + self.name)
# virtual objects
tom = Worker("Tom")
alex = Worker("Alex")
# call methods
tom.show()
alex.show()
'''
run:
the name is: Tom
the name is: Alex
'''