Created
December 12, 2019 11:46
-
-
Save jasongorman/5f2fbd79ec0bc4e3b4b3a668381e839e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rental(object): | |
def __init__(self, customer, imdbID, pricer): | |
self.customer = customer | |
self.video = pricer.price(imdbID) | |
def __str__(self): | |
return "Video Rental - customer: " + self.customer \ | |
+ ". Video => title: " + self.video.title \ | |
+ ", price: £" + str(self.video.price) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment