| И наконец... наследование | Страница 48 |
class Movie...
public int getFrequentrenterPoints( int daysRented) {
if( getPriceCode()==Movie.NEW_RELEASE && daysRenter>1)
return 2;
else
return 1;
}
Оглавление | << страница 47 | страница 49 >>