GastonPalazzo

Black

Oct 11th, 2020 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. #import
  2. from Cuenta import Cuenta
  3. from datetime import date, datetime
  4.  
  5. #class
  6. class Black(Cuenta):
  7.     #cnstr
  8.     def __init__(self, CBU, activos):
  9.         super().__init__(CBU, activos)
  10.     #
  11.     #meths
  12.         #especificos
  13.     def acreditar(self, monto, medio):
  14.         if monto>1000000:
  15.             monto-=(monto*0.04)
  16.         super(Black, self).acreditar(monto, medio) #paso de valores a la funcion de la clase padre
  17.     def debitar(self, monto, medio):
  18.         self.agregarPasivo(monto)
  19.         self._transacciones.append(f'{monto}, {medio}')
  20.         self._fechaUltimoMov=date.today()
Add Comment
Please, Sign In to add comment