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).

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести