A method defined inside a class with the decorator
So, why should we bother about using
@staticmethod can be executed without creating a class object. However, the same can be done even if the decorator was not used:className.MethodName()So, why should we bother about using
@staticmethod? 