
The original example appears in:
A Comparison of Object-Oriented Programming in Four Modern Languages
R. Henderson and B. Zorn
Software-Practice and Experience, Vol. 24, Num. 11, pp. 1077-1095, Nov. 1994.
|
Database Application (Fortran 90 Version) |
Database Application (C++ Version) |
| View with button1 or down-load with button3 | |
| Document Reference | Source Code |
| Lippman, pp. 215-238 | Screen Class |
| Lippman, pp. 301-319 | String Class |
| Lippman, pp. 310-314 | String Iterator Class |
| Lippman, pp. 459-468. This example shows how to emulate dynamic dispatching. | Zoo Animal Class |
| View with button1 or down-load with button3 | |
This section contains advanced examples from the Graham text:
| Document Reference | Source Code |
| Graham, pp. 299-305. | Expression Tree Example |
| Graham, pp. 323-363. This examples uses an array of linked-lists. | Event-Driven Simulation |
| View with button1 or down-load with button3 | |
This example emulates inheritance and run-time polymorphism:
| Document Reference | Source Code |
| Gray and Roberts, pp. 355-360. | Parallel Stopwatch Example |
| View with button1 or down-load with button3 | |
This improves upon the example by
M. Gray and R. Roberts, Object-Based Programming in Fortran 90.
Computer in Physics, Vol. 11, No. 4, JUL/AUG 1997.
Additional examples may be forthcoming.