-2
I can’t find the reason it gives Attributeerror: 'int' Object has no attribute 'value'
class DidaticaTech:
def __int__(self, v=10, i=1):
self.valor = v
self.incremento = i
def incrementa(self):
self.valor = self.valor + self.incremento
a = DidaticaTech()
a.incremento()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-70-c86fe0605456> in <module>
----> 1 a.incrementa()
AttributeError: 'int' object has no attribute 'incrementa'