QuestionQ32

VerifiedAdvanced Object-Oriented Programming

Which statement about the @property decorator is false?

Explanation

The @property decorator defines the getter and creates the property object. Methods that set or delete the encapsulated value are added afterward through that property’s .setter and .deleter decorators, so the property must be defined before them.

Community Discussion

No comments yet. Be the first to start the discussion!