Coding your own cup of coffee

Advanced:

coffee my_coffee = new coffee();
my_coffee.add(new milkfroth(new 3DDimension(2,2,5));
my_coffee.add(new sugar(3));

For the less-experienced:

coffee my_coffee = coffeeFactory.createCafeLatte();

Inspired by a posting at board.gulli.com


About this entry