Why is the property decorator used? I mean it's easier to use the normal classes, right? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why is the property decorator used? I mean it's easier to use the normal classes, right?

22nd Oct 2019, 3:08 PM
sujay simha
sujay simha - avatar
2 Answers
+ 1
Property decorator is used to add changes to existing methods without disturbing original implementation.
25th Oct 2019, 2:26 AM
Vikesh R S
Vikesh R S - avatar
+ 1
thank you Vikesh R S!
25th Oct 2019, 5:03 AM
sujay simha
sujay simha - avatar