2007年6月15日

摘要: 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 阅读(160) 评论(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 阅读(314) 评论(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 阅读(185) 评论(0) 推荐(0)
摘要: The following guidelines can help you aviod OO design that violate the Dependency Inversion Principle: No variable should hold a reference to a concrete class No class should derive from a c... 阅读全文
posted @ 2007-06-15 13:00 ewan 阅读(94) 评论(0) 推荐(0)

导航