#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; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment