摘要: Real world objects are handled very similarly to software object oriented design. Supposeyou are designing an object oriented design for a parking lot:1. What are your goals? For example: !gure out if a parking spot is taken, !gure out howmany cars of each type are in the parking lot, look up handic 阅读全文
posted @ 2013-03-06 07:21 西施豆腐渣 阅读(175) 评论(0) 推荐(0) 编辑
摘要: imagine we’re designing the objects for a deck of cards. Consider the following approach:1. What are you trying to do with the deck of cards? Ask your interviewer. Let’s assumewe want a general purpose deck of cards to implement many di#erent types of cardgames.2. What are the core objects—and what 阅读全文
posted @ 2013-03-06 06:00 西施豆腐渣 阅读(149) 评论(0) 推荐(0) 编辑