
May 29th, 2000, 03:56 AM
|
|
Junior Member
|
|
Join Date: Apr 2000
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Does anyone know offhand if it is possible to call the parent class' overloaded function from the child....
....i.e. if I have a class called A with a member function xyz(), and then define a class B which inherits from A... and redefine the function xyz() in B.... then is it possible for B->xyz() to call A->xyz() from within itself?
Why? Well I want to 'add' to the funcionality of a base class. the base class returns a string, and my child class wants to take the parent string and add bits to it.
Is it just a case of calling xyz() from B ? Won't that just cause reccursion on itself? I need something like baseclass->xyz().
Any help much appreciated
Thanks
Padge
|