This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ChildrensPrice extends Price | |
| { | |
| int getPriceCode() | |
| { | |
| return Movie.CHILDRENS; | |
| } | |
| double getCharge(int daysRented) | |
| { | |
| double result = 1.5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Enumeration; | |
| import java.util.Vector; | |
| public class Customer | |
| { | |
| private String _name; | |
| private Vector _rentals = new Vector(); | |
| public Customer(String name) | |
| { |
NewerOlder