Home / MCQ Bank / Computer
Computer Concept Of Object Oriented Programs In Python

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

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • It allows you to define a method that can be accessed like an attribute

Related Computer Questions

What happens if an exception is raised within an ensure block in Ruby? Which built-in function is used to calculate the absolute value of a number? Which of the following property controls CSS counter values? Which of the following property changes the color of top border? The Primary job of the operating system is