Simple design strategy: construct multiple sentences concerning the actions of the program: for example, The customer inserts an item into his shopping cart. In this case, you can variably choose nouns to represent some objects- "customer" and "shopping cart" and "item" (product). Verbs will be the functions- ShoppingCart.insert(Item); Try this a few times to get the hang out it. Why not try sifting through one of the thousands of complete shopping apps and trying to perhaps redo it with OO design for practice.
In reply to Re: OO Design Reference?
by AgentM
in thread OO Design Reference?
by sz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |