Could Python supplant Java?
James J. Besemer
jb at cascade-sys.com
Wed Aug 21 14:29:40 EDT 2002
Mark McEahern wrote:
> But consider a file-like object (the canonical example of polymorphism).
> All I care about is that this thing can be opened, closed, read, written to,
> etc. Do I really care that it's a "file" type? Nope.
But THAT's a red herring.
Java and C++ DO have true polymorphism.
You don't have to live without it in early binding languages you merely have to
declare your intent (e.g., to implement a particular interface).
--jb
--
James J. Besemer 503-280-0838 voice
http://cascade-sys.com 503-280-0375 fax
mailto:jb at cascade-sys.com
More information about the Python-list
mailing list