Vidyalelo
Python · Q63

Classes and Objects in Python

Programming · Python · question 63

Q63

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

A.
It allows you to define a method that can be accessed like an attribute
Answer
B.
It defines a property
C.
It defines a method
D.
It defines a constructor

Answer: Option A

Solution

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