You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Rental.java 339B

123456789101112131415161718
  1. public class Rental {
  2. private final Movie movie;
  3. private final int daysRented;
  4. public Rental( Movie movie, int daysRented ) {
  5. this.movie = movie;
  6. this.daysRented = daysRented;
  7. }
  8. public Movie getMovie() {
  9. return movie;
  10. }
  11. public int getDaysRented() {
  12. return daysRented;
  13. }
  14. }