Well, since I got involved in the project, I might as well pass on the link to Jim Weirich's Object Oriented Example Code page. The page contains a simple OOP example, specifically Shapes, written in quite a few programming languages. The idea behind the example is to demonstrate how to get polymorphic behavior in a series of OOP and non-OOP languages. The current language entries include:
OO Languages:
Beta, C++, Cecil, CLOS, Component Pascal, Delphi, Dylan, Eiffel, Itcl, Java, JavaScript, LPC, Modula3, Oberon, Objective-C, OCaml, Perl, Php, Python, Ruby, Sather, Simula, Smalltalk, Visual Basic, VBScript, Visual Foxpro
General Purpose non-OO Languages:
ANSI C, Erlang, Forth, Haskell, Icon, Modula2
Special Purpose Languages:
AdvSys, awk, DOS Batch, Foxpro, Postscript, Prolog, sed, Shell Script
Written but not posted to Jim's site yet:
Pike, REBOL, Ada'95, COBOL, J, Object REXX, Lua, Oz
|