[bitc-dev] Question for the group re: OO
raould at gmail.com
Fri Mar 19 17:14:22 PDT 2010
> I would say that virtual functions in one form or another are one of
> the cornerstones of a typical OO languages because they are exactly
> the feature used for extending objects.
> The same can be probably done without inheritance and virtual methods
> by defining an interface and implementing it differently in different
> Translating code between the two would be somewhat difficult I guess, though.
if you look at it as object A sends a message to object B, and object
B is really under the covers any of B', B'', B''', etc., then there
are several ways to implement the polymorphism. delegation in the
forwarding sense (slight semantic difference between the two, the
latter being safer) is often not well supported in current
self-professed oo languages, more is the pity i think cf. fragile base
More information about the bitc-dev