PCAP - Certified Associate in Python Programming Practice Test
PCAP Closures and Decorators 3
What does `@property` allow you to do in a Python class?
Select your answer
A
Define a method that is accessed like an attribute, triggering computation on read
B
Make a class attribute permanently read-only at the metaclass level
C
Define compile-time constants that cannot be overridden in subclasses
D
Create name-mangled private attributes automatically
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →