A petrol (gas) station is to be set up for fully automated operation. Drivers swipe their credit card through a reader connected to the pump; the card is verified by communication with a credit company computer; and a fuel limit is established. The driver may then take the fuel required. When fuel delivery is complete and the pump hose is returned to its holster, the driver's credit card account is debited with the cost of the fuel taken. The credit card is returned after debiting. If the card is invalid, the pump returns it before fuel is dispensed.
+3
A:
Objects are usually associated with nouns. So just pick out the nouns and if it makes sense to model them (that is they hold state) then make them objects. This should give you enough to get you started.
ennuikiller
2009-11-15 05:20:58
+1 for making a good general statement
thephpdeveloper
2009-11-15 05:29:01
Can you think of any cases where they wouldn't be nouns (just out of curiosity?)
Matthew
2009-11-15 05:35:17