This page is the starting point into a series of pages that attempt to give a
complete example of object-oriented analysis, design, and programming applied to
a moderate size problem: the simulation of an Automated Teller Machine. I developed
these pages in the belief that students would benefit from seeing a
Beginning with a statement of requirements, the process proceeds through identification of objects, use-case analysis (as in [Jacobson, 1992]), the beginning of the design process through the use of CRC cards, the development of a class diagram, and detailed class design using class and operation description forms. The resultant design is implemented using C++, with most of the code being accessible - though I have kept some hidden for reasons explained on the code page. It is my hope to eventually also implement this system using java - at which point links to the java source code and an executable version will also be made available.
I developed this series of pages for use in my course "Object Oriented Software Development with C++", taught to junior CS majors at Gordon College. Insofar as possible, I have followed the design methodology taught in the textbook I am using for the course - [Horstmann, 1995]. However, since this book does not discuss object-oriented analysis I have had to bring in material from other sources. Probably the best way to start using these pages is to begin with the Requirements document and then continue through the steps in the process in the order listed below, until you get to the CRC cards. You will find that each CRC card has a link to the corresponding class description form, which in turn has links to the C++ declaration for the class and the operation forms for its methods. The operation description forms, in turn, have links to the C++ implementation of each method. (When the java version is done, the class and operation description forms will also have links to that code.) These will allow you to follow through the complete design process for each individual class. Enjoy!
Though the pages are copyrighted, I hereby freely give permission for their reproduction for non commercial educational purposes. I hope they will prove useful to other faculty who are starting - as I am - to teach OO methods. I would also really welcome suggestions and feedback - either about the design itself or the way it is presented.
Russell C. Bjork
Professor of Computer Science
Gordon College
255 Grapevine Road
Wenham, MA 01984
(508) 927-2300 x 4377
bjork@gordon.edu
[ Intro ]
[ Requirements ]
[ Domain Objects ]
[ Use Cases ]
[ CRC Cards ]
[ Class Diagram ]
[ Class Description Forms ]
[ Operation Description Forms ]
[ Code ]
[ Executable ]