?
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.
Join the Discussion
Login to post a comment or share your explanation.
Login