Run
class A: @classmethod def myFunction(self, msg) : print(msg) # Calling on class A.myFunction('Hello World!') # Calling on class instance A().myFunction('Hello User!')
Output