Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #############
- # Propiedad #
- #############
- #imports
- #class
- class Propiedad:
- #att
- nI='No asigando'
- #cnstr
- def __init__(SELF, nombre=nI, precioAlq=FLOAT(0), precioVnt=FLOAT(0), propietario=NONE):
- SELF.__nombre=nombre
- SELF.__precioAlq=precioAlq
- SELF.__precioVnt=precioVnt
- SELF.__propietario=propietario
- #meths
- #gtt & stt
- def getNombre(SELF):
- RETURN SELF.__nombre
- def getPrecioAlq(SELF):
- RETURN SELF.__precioAlq
- def getPrecioVnt(SELF):
- RETURN SELF.__precioVnt
- def getPropietario(SELF):
- RETURN SELF.__propietario
- def setNombre(SELF, nuevoNombre):
- SELF.__nombre=nuevoNombre
- def setPropietario(SELF, nuevoPropietario):
- SELF.__propietario=nuevoPropietario
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement