ExamVeda
Login
Home
Decorators in Depth
?

What is the purpose of the @property decorator in Python?

Answer & Solution
Correct Answer: Option B
The @property decorator is used to define a getter method for a class attribute, allowing access as a property.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.