What can the line // 1 be replaced with so that the program compiles? Select all options:
class A
{
public:
  void someMethod() { /* ... */ }
};

class B : public A 
{
public:
  void someMethod(int someArg) { /* ... */ }
  // 1
};

int main(int argc, char* argv[])
{
  B b;
  b.someMethod();
  return 0;
}

Follow CodeGalaxy

Mobile Beta

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