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



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

Answer / 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

More C++ General Interview Questions

What is virtual destructor ans explain its use?

1 Answers  


Is c++ high level programming language?

1 Answers  


Which of the following is evaluated first: a) && b) || c) !

1 Answers  


If I is an integer variable, which is faster ++i or i++?

1 Answers  


Explain about vectors in c ++?

1 Answers  


what is meaning of isa and hsa

1 Answers  


Please explain class & object in c++?

1 Answers  


What is == in programming?

1 Answers  


Generally variables are stored in heap memory. When he variables are created in stack?

4 Answers   Persistent,


When can I use a forward declaration?

1 Answers  


What are static member functions?

1 Answers  


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

1 Answers  


Categories