Examveda
Examveda

What is the purpose of the @staticmethod decorator in Python classes?

A. It defines a method that belongs to the class rather than an instance

B. It defines a static attribute

C. It defines a global function

D. It defines a constructor

Answer: Option A


This Question Belongs to Python Program >> Classes And Objects In Python

Join The Discussion

Related Questions on Classes and Objects in Python