Posts by Edy • 3 points
2 posts
-
-3
votes1
answer55
viewsQ: Error using Decorator in a Setter method
I’m trying to implement a simple Python code to practice using decorators in conjunction with advisory methods (Getters and Setters), but I’m getting an error. The code is as follows:: class…
-
-1
votes2
answers50
viewsQ: Does every attribute need advisory methods?
I am learning POO in Python and I was in doubt whether I should use advisory methods for all the attributes I include in a class. For example, if I create a class with 20 attributes, in which values…