Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 11)
11.
What is the purpose of the
@property
decorator?
Answer: Option
Explanation:
The
@property
decorator is used to define a getter method for a class attribute. It allows the method to be accessed like an attribute without using parentheses.
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