[futurebasic] Re: FB^3 & Method overloads

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Keith Bagley <keithb@...>
Date: Thu, 04 Dec 1997 08:51:48 -0500
David wrote:
>Chris wrote:
>>I don't know if this was addressed before or not, but does FB^3 support
>>method overloading?  If so, is it implemented by simply defining methods
>>with the same names and different parameter lists (and/or return types) or
>>something else?
>Overrides.  And yes they are fully supported.  If the class defines a 
>method that was defined in the superclass, that method has been 
>overridden.  You also have the option of inheriting the overriden method 
>if you want.

I think Chris was asking about the Ada/C++/Java notion of method
*overloading*...having more than one method with the same name but
*different* parameter lists within the same scope; not overriding, which is
different methods with the *same* parameter lists between super and subclass
scopes. From the examples we've seen so far (albeit an early stage where
things can change) I'd say no.
Keith Bagley
Director of Technology
X-Act! Software