How do you define a class method (not an instance method) in Python?
-
A
Use @staticmethod decorator with 'cls' as first parameter
-
B
Use @classmethod decorator with 'cls' as first parameter
-
C
Use @classmethod decorator with 'self' as first parameter
-
D
Define the method outside the class body