0

I have a superclass with these function :

    Superclass& operator<<(const char *str);
    Superclass& operator<<(int num);
    Superclass& operator<<(void(*pf)());

and subclass that I rewrited with these function :

Subclass& operator<<(const char *str);
Subclass& operator<<(int num);

And I want to know if I can go get the Superclass& operator<<(void(*pf)()); function to my subclass

Eyal Elbaz
  • 31
  • 9

1 Answers1

1

To call the super class function use the super class name, like this:

Superclass::operator<<(void(*pf)());