Contact: aviboots(AT)netvision.net.il
40,836 questions
53,240 answers
573 users
class Worker: name = "" def __init__(self, name): self.name = name def show(self): print("the name is: " + self.name) @staticmethod def static_method(): print("static_method") tom = Worker("Tom") tom.static_method() ''' run: static_method '''
class Worker: name = "" def __init__(self, name): self.name = name def show(self): print("the name is: " + self.name) @staticmethod def static_method(): print("static_method") Worker.static_method() ''' run: static_method '''