(Hackerrank) HackerRank Python Certification Practice Test
Hackerrank Object-Oriented Programming Basics 4
What is the purpose of the @property decorator?
Select your answer
A
It makes an attribute read-only by default and allows controlled access via a method
B
It converts a class method into an instance method
C
It marks a method as a static utility function
D
It prevents a method from being inherited
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →