摘要:
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 阅读全文
摘要:
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 阅读全文