Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 7)
7.
What is the purpose of the
@staticmethod
decorator?
Answer: Option
Explanation:
The
@staticmethod
decorator is used to define a static method in a class. Static methods are not bound to an instance and can be called on the class itself without creating an object.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers