Changes

Jump to: navigation, search

Decorator

147 bytes added, 13:26, 28 February 2007
m
Sample Code
public String getDescription() {
return beverage.getDescription() + ", Mocha";
}
public double cost() {
return 0.10 + beverage.cost();
}
}
public String getDescription() {
return beverage.getDescription() + ", Vanilla";
}
public double cost() {
return 0.20 + beverage.cost();
}
}
1
edit

Navigation menu