The _______ decorator in a class is used to turn a method into a class-specific method.

  • @classmethod
  • @classmethodmethod
  • @instancemethod
  • @staticmethod
The '@staticmethod' decorator in a class is used to turn a method into a class-specific method. Class-specific methods do not depend on instance-specific data and can be called on the class itself, without creating an instance.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *