Created
July 6, 2016 00:30
-
-
Save rightson/889d514ced6021b536f87cd1aed51c52 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
| private Movie _movie; | |
| private int _daysRented; | |
| public Rental(Movie movie, int daysRented) { | |
| _movie = movie; | |
| _daysRented = daysRented; | |
| } | |
| public int getDaysRented() { | |
| return _daysRented; | |
| } | |
| public Movie getMovie() { | |
| return _movie; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment