



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Movie priceCode: int
Customer
statement()
Rental daysRented: int
**1 ***^1
aCustomer aRental aMovie
statement
getDaysRented
getMovie getPriceCode
*** [for all rentals]**
Decompose and Redistribute Statement Method
Rename Variables
Provide more descriptive names
Move Method
Prepare to add htmlStatement
Customer statement()htmlStatement
HtmlStatement headerString(Customer)eachRentalString(Customer) footerString(Customer)
Statement value(Customer) headerString(Customer) eachRentalString(Customer)footerString(Customer)
TextStatement headerString(Customer)eachRentalString(Customer) footerString(Customer)
Replace Conditional Logic on priceCode with Polymorphism