Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Rent:
- def __init__(self,client,movie,id):
- self.__clientName = client.name
- self.__clientId = client.id
- self.__movieName = movie.title
- self.__movieId = movie.id
- self.__id = id
- def __eq__(self, value):
- if self.__movieId == value.__movieId and self.id == 1:
- return True
- def getMovieName(self):
- return self.__movieName
- def getClientName(self):
- return self.__clientName
- def getId(self):
- return self.__id
- def getMovieId(self):
- return self.__movieId
- def getClientId(self):
- return self.__clientId
- def setId(self, value):
- self.__id = value
- id = property(getId, setId, None, None)
- movieName = property(getMovieName, None, None, None)
- clientName = property(getClientName, None, None, None)
- movieId = property(getMovieId, None, None, None,)
- clientId = property(getClientId, None, None, None,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement