Some sample programs that were discussed in class or that appeared on exams:

Follow this link for programs from the textbook

C++ programs: inherit.cpp, compose.cpp, racing.cpp, interval.cpp, overload.cpp, deque.cpp, deque2.cpp, visitor.cpp, dispatch.cpp, static.cpp, exam2-0.cpp, exam2-1.cpp, exam2-2.cpp, exam2-3.cpp, exam2-6.cpp, equals.cpp, tinytalk.cpp, refcount.cpp, tinytalk2.cpp

Java programs: interval.java, deque.java, MyApplet.java, MyApplet.html, static.java, exam2-4.java

Smalltalk programs: card.st, interval.st, deque.st, exam2-5.st

Tinytalk programs: math.tiny, deque.tiny, tree.tiny, binding.tiny, exam3a.tiny, exam3b.tiny