Examveda

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

B. It defines a property

C. It defines a method

D. It defines a constructor

Answer: Option A


Join The Discussion

Related Questions on Concept of Object Oriented Programs in Python