[V4Rb 2] Constructor overriding problem
Charles Yeomans
yeomans at desuetude.com
Fri Jun 3 16:07:00 CDT 2005
On Jun 3, 2005, at 1:47 PM, Ruslan Zasukhin wrote:
> On 6/3/05 8:12 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
>
>>>>>> Super.VDatabase(inHost as String, inUserName as String,
>>>>>> inUserPassword as String, inPort as Integer=15432, inTimeOut as
>>>>>> Integer=60, inOptions as String="")
>>>>>
>>>>> Of if just
>>>>>
>>>>> VDatabase
>>>>>
>>>>> ?
>>>>
>>>> I don't understand. I can call Super.VDatabase(inStorageType). It
>>>> is
>>>> the second constructor that cannot be called.
>>>
>>> Have you try without word Super ?
>>>
>>> In our examples it seems we write just VDaatbase
>>
>> I looked at the example. This worked for me--
>>
>> Super.VDatabase(inHost, inUserName, inUserPassword)
>>
>> but this did not--
>>
>> Super.VDatabase(inHost, inUserName, inUserPassword, inPort as
>> Integer=15432, inTimeOut as Integer=60, inOptions as String="")
>
> But why you write here default parameters ?
> This is wrong. You do call of function, default params can be
> specified only
> when you declare function.
Right. What I mean to say is that I cannot pass any optional
parameters when I call the constructor. So let me pose this problem --
why does the code below not work?
>
>> And the following constructor does not work.
>>
>> db = new VDatabase(DBHost, w.UserName, w.UserPassword, 15432, 60, "")
--------------
Charles Yeomans
More information about the Valentina
mailing list