Skip to content

Instantly share code, notes, and snippets.

@punkyoon
punkyoon / ChildrensPrice.java
Created August 29, 2017 16:22
modified example
class ChildrensPrice extends Price
{
int getPriceCode()
{
return Movie.CHILDRENS;
}
double getCharge(int daysRented)
{
double result = 1.5;
@punkyoon
punkyoon / Customer.java
Created August 29, 2017 14:01
ch01 - default
import java.util.Enumeration;
import java.util.Vector;
public class Customer
{
private String _name;
private Vector _rentals = new Vector();
public Customer(String name)
{