Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import
- from Cuenta import Cuenta
- from datetime import date, datetime
- #class
- class Platinum(Cuenta):
- #cnstr
- def __init__(self, CBU, activos):
- super().__init__(CBU, activos)
- #
- #meths
- #especificos
- def acreditar(self, monto, medio):
- super(Platinum, self).acreditar(monto, medio) #paso de valores a la funcion de la clase padre
- def debitar(self, monto, medio):
- if self.getBalance()<5000:
- monto=monto*0.05
- self.agregarPasivo(monto)
- self._transacciones.append(f'{monto}, {medio}')
- self._fechaUltimoMov=date.today()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement