Python - Encapsulation and Data Protection
What is the main benefit of using the @property decorator in a Python class?
What is the main benefit of using the @property decorator in a Python class?
@property does@property decorator lets you access a method as if it were a simple attribute, so you don't need to use parentheses.@property does not affect speed, printing, or disabling methods.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions