class Hello: def __init__(self, name): self.name = name @classmethod def say_hello(self): print("Hello {}".format(self.name)) def reply(self): return self.say_hello() Justine = Hello("Justine") Justine.reply()
cls
say_hello
@classmethod
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)