Vidyalelo
Python · Q49

Formatting and Decorators

Programming · Python · question 49

Q49

In Python, what is the purpose of the @property decorator?

A.
Define getter methods
Answer
B.
Set the value of attributes
C.
Define instance methods
D.
Define class methods

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board