Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 19)
19.
What is the purpose of the
@staticmethod
decorator?
Answer: Option
Explanation:
The
@staticmethod
decorator is used to define a static method in a class, which is a method that belongs to the class rather than an instance.
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