|
Posted by Sanders Kaufman on 07/24/07 02:26
Jerry Stuckle wrote:
> Sanders Kaufman wrote:
>> I just now realized that I had a TableName property in both my
>> baseclass and my extended class... accidentally overriding, right?
>>
>> But... can I still have it in both places, calling the baseclass
>> property with one of those :: operators?
>>
>> Or does the overriding kill that altogether?
>
> No, overriding doesn't kill this. However, generally you would want to
> call the derived class's function, and that one would call the base
> class's function.
>
> If the functions have the same name, the child class's function should
> be an extension of the base class's function. If the child class
> function is not, it should have a different name.
So when I override a function, it actually calls the baseclass function
AND THEN the derived function? Did I understand that right?
Navigation:
[Reply to this message]
|