In this Python programming video tutorial we will learn about the property decorator in detail.
Property decorator is a built in decorator which allow us to use class method as attributes. The main purpose of any decorator is to change your class methods or attributes in such a way so that the user of your class no need to make any change in their code. property decorator serve this purpose.
Decorators All videos:
https://www.youtube.com/playlist?list=PLzgPDYo_3xukWUakgF-OJvDOChq6drPG2
Property Decorator Part 1:
https://www.youtube.com/watch?v=5-S_B6nAzO8
#PythonProgramming #Decorators #@property
For more free tutorials on computer programming
http://www.facebook.com/AmulsAcademy
http://www.twitter.com/AmulsAcademy
Instagram Id:
Amuls Academy
Proudly WWW.PONIREVO.COM
I don't really understand private variables honestly. What is the point in them being private if you can access them like any other attribute? Of course I'm missing something but I don't understand.
?
What can I do for update two or more variable via @property not by setter getter
Eg – marks1 and marks2
one suggestion: make these videos short: prepare your code in advance and go to the main point. we don't need to go through all cumbersome class definition line by line. if someone wants to know about decorators, he possibly know those basic stuff. tnx
great
can i change this setter by any name of @marks.setter.is setter fixed?
Great tutorial, Keep going, Thanks.
Send me the Python interview questions and answers link…..
Thank you