OOP-03

class Rental... //In this case fitting into its new home means removing the parameter. double getCharge { double result = 0; switch (getMovie.getPriceCode) { case Movie.REGULAR: result += 2; if (getDaysRented > 2) result += (getDaysRented - 2) * 1.5; break; case Movie.NEW_RELEASE: result += getDaysRented * 3; break; case Movie.CHILDRENS: result += 1.5; if (getDaysRented > 3) result += (getDaysRented - 3) * 1.5; <span style="font-family: 'Courier New'; font-size: 13px; line-height: normal; margin: 0cm 0cm 0pt 36pt; text-indent: 36pt;">break; <span style="font-family: 'Courier New'; font-size: 13px; line-height: normal; margin: 0cm 0cm 0pt 36pt; text-indent: 36pt;">} <span style="font-family: 'Courier New'; font-size: 13px; line-height: normal; margin-bottom: 0pt; text-indent: 36pt;">return result; }