Refinement C++ example void Parent:: example(int a) { cout << in parent code\n; } void Child::example(int a) { Parent::example(12); //do parent action cout << in child code\n; } Java example class Parent { public void example(int a) {cout << in parent code\n;} } class Child { public void example(int a) { super.example(12); //do parent action cout << in child code\n; } 14
{}