realbasic-nug
[Top] [All Lists]

Re: Call confusion

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Call confusion
From: Ed Kleban <Ed at Kleban dot com>
Date: Sat, 31 Dec 2005 21:27:27 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcYOg0nmiGgWU3p2EdqMMAANk0o3Jg==
Thread-topic: Call confusion


On 12/31/05 3:50 PM, "Mars Saxman" <mars at realsoftware dot com> wrote:

> 
> On Dec 31, 2005, at 1:33 PM, Ed Kleban wrote:
>   
> I don't think I understood your second example; the methods didn't
> have the same names, so I couldn't see how overloading would apply.
>  

Ah, yeah I kinda botched that one didn't I.   Well, let me try again:

If I have:

    barClass.foo( x as Integer )
    bazClass.foo( x as Variant )

and  bazClass is a subclass of barClass, then which method is supposed to be
called for:

    dim aBaz as bazClass
    aBaz.foo( 42 )


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>