Vidyalelo
Python · Q48

Concept of Object Oriented Programs in Python

Programming · Python · question 48

Q48

What is the purpose of the @property decorator in object-oriented programming?

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