Python Programming - Decorators - Discussion
Discussion Forum : Decorators - General Questions (Q.No. 17)
17.
How does the
@property
decorator differ from the @staticmethod
decorator?
Answer: Option
Explanation:
@property
is used to define read-only properties without the need for explicit getter methods. @staticmethod
is used to mark a method as a static method within a class.
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