Rookie question:
So there is this class
class A
{
private:
void error(void);
public:
void callError(void);
};
And I would like to call error from callError using a pointer.
I can achieve calling a public function from main using a pointer.
int main(void)
{
void (A::*abc)(void) = &A::callError;
A test;
(test.*abc)();
return (0);
}
However, I cannot find a way how to call error function from callError using a pointer. Any tips? :)