Christopher Smith wrote:
C++ uses static dispatch by default, doesn't it? If you write a C++
program and never define a virtual function, is your code necessarily
not OO then?
Yes.
/me falls out of chair.
Sorry, just not the case.

Funny that you mention Alan Kay below, as dynamic dispatch/late binding is one of the two or three properties he says make up "object oriented". (Depending on which interview you read, it's 2 or 3 properties...)

--
  Darren New / San Diego, CA, USA (PST)
    "That's pretty. Where's that?"
         "It's the Age of Channelwood."
    "We should go there on vacation some time."

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to