ExamVeda
Login
Home
Decorators in Depth
?

What is the role of the @staticmethod decorator in Python?

Answer & Solution
Correct Answer: Option B
The @staticmethod decorator allows a method to be called without creating an instance of the class.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.