comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: What about real polymorphism ??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: What about real polymorphism ?? [message #41980 is a reply to message #41979] Thu, 09 December 2004 09:12 Go to previous messageGo to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"Antonio Santiago" <d6522117@est.fib.upc.es> wrote in message
news:cp9urg$rpj$1@defalla.upc.es...
> Sorry, i think my english is little poor :)
>
> Here are class C1 with a method called "datos" to print object data. It
> prints: name and num.
>
> C2 is a subclass of C1 and overrides "datos" method, that prints: name,
> num and think.
>
> In a language like java i can "cast" C2 object to a C1 object and
> invoque "datos". The result is the execution of method "datos" of the C2
> object.
>
> How can i do the same with IDL? It posible in IDL to cast to superclass?

Do you want:

c2->c1::datos

???

This will invoke the datos method defined in c1.

Karl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stretching an image
Next Topic: ENVI and ROIs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:56:00 PDT 2025

Total time taken to generate the page: 0.64030 seconds