文章分类 -  design pattern

摘要:Let's say you have a pizza shop,and a cutting-edge pizza store owner in Objectville you might end up writing some code like this: Pizza orderPizza(){ Pizza pizza=new Pizza(); pizza.prepare... 阅读全文

posted @ 2007-06-16 11:54 ewan 阅读(201) 评论(0) 推荐(0)

摘要:public abstract class Beverage{ string description="Unknow Beverage"; public String getDescription(){ return description; } public acstract double cost();}public abstract class CondimentDeco... 阅读全文

posted @ 2007-06-15 18:08 ewan 阅读(175) 评论(0) 推荐(0)

摘要:The three players in the system are the weather station, the WeatherData object,and the display that shows users the current weather conditions. The WeatherD... 阅读全文

posted @ 2007-06-15 17:28 ewan 阅读(329) 评论(0) 推荐(0)

摘要:Joe works for a company that makes a highly successful duck pond simulation game.The game can show a large varicty of duck species swimming and making quackin... 阅读全文

posted @ 2007-06-15 15:33 ewan 阅读(198) 评论(0) 推荐(0)

导航