0

ERROR On @egg.setter

the example was with "_", there is confusing...

27th Dec 2017, 9:35 PM
Manuel Mariscal
Manuel Mariscal - avatar
3 odpowiedzi
+ 1
Python 3 > OOP > Properties > Last Question
27th Dec 2017, 11:18 PM
Manuel Mariscal
Manuel Mariscal - avatar
+ 1
hi, To define a setter, you need to use a decorator of the same name as the property, followed by a dot and the setter keyword. in this question, the property is egg in the example, the property is pineapple_allowed
28th Dec 2017, 7:02 AM
MBZH31
MBZH31 - avatar
0
Its confusing the answer that the questions asks for... its different than the example
27th Dec 2017, 9:49 PM
Manuel Mariscal
Manuel Mariscal - avatar