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())
Y2xhc3MgRnVuY2lvbmFyaW86CgogICAgZGVmIF9faW5pdF9fKHNlbGYsIG5vbWUsIHNhbGFyaW8sIGNwZik6CiAgICAgICAgc2VsZi5ub21lID0gbm9tZQogICAgICAgIHNlbGYuc2FsYXJpbyA9IHNhbGFyaW8KICAgICAgICBzZWxmLmNwZiA9IGNwZgoKICAgIGRlZiBnZXRCb25pZmljYWNhbyhzZWxmKToKICAgICAgICByZXR1cm4gc2VsZi5zYWxhcmlvICogMC4xMAoKCmNsYXNzIEdlcmVudGUoRnVuY2lvbmFyaW8pOgoKICAgIGRlZiBnZXRCb25pZmljYWNhbyhzZWxmKToKICAgICAgICByZXR1cm4gc3VwZXIoKS5nZXRCb25pZmljYWNhbygpICsgMTAwMAoKCmdGID0gR2VyZW50ZSgid2VsaXRvbiIsIDMxMi4yMiwgIjMzMjMyMjMzMyIpCnByaW50KGdGLmdldEJvbmlmaWNhY2FvKCkp