M
mandatory
hi,
i have two classes:
class A
{
public:
virtual Push (void *p);
};
And the other one:
Class B : Public A
{
public:
virtual Push (void *p);
}
What i want to do in the Push() in class B, is that i want to do some
additional checking in the start of the function - and the i would like to
call the original code for Push().
Is that possible, can i somehow call the original Push() (the one definded
in ClassA) ? the problem im facing is ofcourse, that when i overrides the
code for Push() it will override it all, so i have to duplicate the code if
i want it to work.
Hope you can understand - and hope you can help - thanks
i have two classes:
class A
{
public:
virtual Push (void *p);
};
And the other one:
Class B : Public A
{
public:
virtual Push (void *p);
}
What i want to do in the Push() in class B, is that i want to do some
additional checking in the start of the function - and the i would like to
call the original code for Push().
Is that possible, can i somehow call the original Push() (the one definded
in ClassA) ? the problem im facing is ofcourse, that when i overrides the
code for Push() it will override it all, so i have to duplicate the code if
i want it to work.
Hope you can understand - and hope you can help - thanks