adspace


How do you invoke a base member function from a derived class in which you’ve overridden that function?

Answer Posted / Vijendra Singh

To call the base implementation of an overridden function in C++, use the `base::` keyword followed by the scope resolution operator (::) and the function name. For example: `base::functionName()`.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1164


What character terminates all character array strings a) b) . c) END

1394


daily Routine of father

1483


Can union be self referenced?

1266


What is the latest version on c++?

1206