What will be printed out as a result of the following code execution?
#include "stdio.h"

class Parent {
  public:
    void Show(int iToShow) { printf("%d", iToShow); }
};

class Child: public Parent {
  public:
    void Show() { printf("%d", 1); }
};

int main() {
  Child obj;
  obj.Show(2);
  return 0;
}

Follow CodeGalaxy

Mobile Beta

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