?
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.
Join the Discussion
Login to post a comment or share your explanation.
Login