Advertisement
GastonPalazzo

Cliente

Oct 11th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. #imports
  2. from abc import ABC, abstractmethod
  3. from Cuenta import Cuenta
  4.  
  5. #class
  6. class Cliente(ABC):
  7.     #cnstr
  8.     def __init__(self, email, pasword, cuenta=Cuenta):
  9.         self._email=email
  10.         self._pasword=pasword
  11.         self._cuenta=cuenta
  12.    
  13.     #meths
  14.         #gtt & stt
  15.     def getCuenta(self):
  16.         return self._cuenta
  17.     def getEmail(self):
  18.         return self._email
  19.     def getPasword(self):
  20.         return self._pasword
  21.         #
  22.     def setEmail(self, nuevoEmail):
  23.         self._email=nuevoEmail
  24.     def setPasword(self, nuevoPasword):
  25.         self._pasword=nuevoPasword
  26.         #especificos
  27.     @abstractmethod
  28.     def cobrarGastoDeMantenimiento(self, tipoDeCuenta=Cuenta):
  29.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement