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 Gold(Cuenta):
- #cnstr
- def __init__(self, CBU, activos):
- super().__init__(CBU, activos)
- #
- #meths
- #especificos
- def acreditar(self, monto, medio):
- if monto<25000:
- monto-=(monto*0.03)
- super(Gold, self).acreditar(monto, medio) #paso de valores a la funcion de la clase padre
- def debitar(self, monto, medio):
- if medio == 'CajeroBanelco':
- pass #no se agrega importe
- elif medio == 'CajeroLink':
- monto+=(monto*0.05)
- elif medio == 'Caja':
- pass #no se agrega importe
- self.agregarPasivo(monto)
- self._transacciones.append(f'{monto}, {medio}')
- self._fechaUltimoMov=date.today()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement