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 Black(Cuenta):
- #cnstr
- def __init__(self, CBU, activos):
- super().__init__(CBU, activos)
- #
- #meths
- #especificos
- def acreditar(self, monto, medio):
- if monto>1000000:
- monto-=(monto*0.04)
- super(Black, self).acreditar(monto, medio) #paso de valores a la funcion de la clase padre
- def debitar(self, monto, medio):
- self.agregarPasivo(monto)
- self._transacciones.append(f'{monto}, {medio}')
- self._fechaUltimoMov=date.today()
Add Comment
Please, Sign In to add comment