public abstract class MovieState
extends java.lang.Object
Domain:
None
Invariant
None
| Constructor and Description |
|---|
MovieState() |
| Modifier and Type | Method and Description |
|---|---|
float |
getAmountDue(int numberOfDaysRented)
Gets the amount due for a given state.
|
int |
getFrequentRenterPoints(int numberOfDaysRented)
Get the frequent renter points for this movie according to the number of days it was rented.
|
public float getAmountDue(int numberOfDaysRented)
numberOfDaysRented - public int getFrequentRenterPoints(int numberOfDaysRented)
numberOfDaysRented - the number of days this movie was rented