From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ee10ec601726fbf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-30 08:28:18 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: Questions - Polimorphism/Dynamic Binding Date: Tue, 30 Oct 2001 11:28:12 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:15418 Date: 2001-10-30T11:28:12-05:00 List-Id: > I don't believe that Ada has this at all. I was > wondering if there is a way to implement this type of > functionality in Ada See http://www.adapower.com/lang/interface.html - Implementing Interfaces in Ada by Ed Falis > If you have a tagged type and extend that type with a > new type. Then pass the new type to a procedure that > accepts its the new types parent, the original type. > Are procedures associated with the child type > (methods) that override it's parent types procedures > called in this instance, even though the procedure > that this type is passed into is unaware of the new > child type and has not withed it's package? It depends on how the method is called. For example: On_Pre_Create (Base_Window_Type'Class (Window), Style, ExStyle); This will dispatch on the overridden method of the object in Window instead of the Base_Window_Type's implementation. In Ada, the caller determines the "virtual"ness of the call. David Botton