Learn to use @property (property decorator) in Python Class. We can use @property to access the method inside a class as an attribute/property. When we define a method inside class with @property, the object of that class can access that method as it's property i.e. we don't need to add parenthesis to get the value returned by the method.
Facebook: / techvitals
Негізгі бет #26 - (OOP) - Property Decorator in Python Class
Пікірлер: 12