Traceback (most recent call last): File "C: /udemypy/Basic/classes/heranca/ex2/funcionario.py", line 20, in print (gF.getBonification ()) File "C: /udemypy/Basic/classes/heranca/ex2/funcionario.py", line 16, in getBonification return super () getBonification + 1000 AttributeError: 'super' object has no attribute 'getBonification'
class Funcionario:
def __init__(self, nome, salario, cpf):
self.nome = nome
self.salario = salario
self.cpf = cpf
def getBonificacao(self):
return self.salario * 0.10
class Gerente(Funcionario):
def getBonificacao(self):
return super().getBonificacao + 1000
gF = Gerente("weliton", 312.22, "332322333")
print(gF.getBonificacao())