Certified Professional in Python Programming (PCPP-32-101) — Question 3

Which sentence about the @property decorator is false?

Answer options

Correct answer: A

Explanation

The correct answer is A because the @property decorator must be defined before the setter method, not after. Options B and C are true as they accurately describe the purpose of the @property decorator, and option D correctly states that the @property decorator should precede the setter and deleter methods.