From problem to OO solution
Identify the objects (“nouns”) in the problem.
Define and implement classes to represent the objects.
- Class name
- Data members : public, private
- Function members
- Service functions (usually public)
- Utility functions (usually private)
- Predicate functions. Example: warnings, status indicators, error indicators, etc.
Write a driver that carries out the interaction among the objects.