Re: What about real polymorphism ?? [message #42036 is a reply to message #41954] |
Sun, 12 December 2004 14:07   |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
JD Smith wrote:
> On Fri, 2004-12-10 at 12:00 +1300, Mark Hadfield wrote:
>
>> I think Antonio's confusion came from his experience with languages like
>> C++ and Java, which have a different object model from IDL. In C++ and
>> Java, the fact that two classes have a method called Draw does not imply
>> these methods are related. For them to be related, the classes have to
>> have a common superclass which itself has a Draw method. The
>> superclass's Draw method will often be virtual, ie. not implemented, but
>> it has to exist.
>
>
> Did you mean "abstract" here? Virtual methods are what all IDL methods
> are: overrideable in a sub-class.
Yeah, that's what I meant. Something like that, anyway :-)
Actually, given my shaky knowledge about these matters, it's probably
stretching it a bit to say I "meant" anything.
--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|