Which keyword should be placed instead of ... for the program to compile successfully?

#include <iostream>
using namespace std;
class TheClass {
public:
    TheClass() {}
    ... void methodPub() {cout << "I did it!!!";}
};

int main(void) {
  void (* realFunction)() = &TheClass::methodPub;
  realFunction();
  return 0;
}
Explanation
There are two types of function calls: regular function call and the class method call. The static class method is called as an ordinary function. (Paragraph 5.2.2 on p. 68 of the "International standard ISO/IEC 14882" document).

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes