Tell me about virtual function



Tell me about virtual function..

Answer / hrpynux@gmail.com

A C++ virtual function is a member function in the base class that you redefine in a derived class. It is declared using the virtual keyword. It is used to tell the compiler to perform dynamic linkage or late binding on the function. ... A 'virtual' is a keyword preceding the normal declaration of a function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

Difference between function overloading and function overriding.

0 Answers   Alter,


Explain the operator overloading feature in C++ ?

0 Answers  


Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69

2 Answers  


How to convert integer to string in C++

0 Answers  


What kind of problems does name mangling cause?

0 Answers   Amazon,






Write a program that can take input from 3 to 8 and calculate the average?

0 Answers   Accenture,


What Is A Conversion Constructor C++ ?

0 Answers   Amazon,


What are the different scope C++ provide ?

0 Answers   Amdocs,


Explain the FOR loop with a help of a code.

0 Answers   Accenture,


Write a C++ Program to Find Sum and Average of n numbers using for loop.

1 Answers  


What do you know about Volatile keyword in C++? Explain with an example code.

0 Answers   Adobe,


Tell us the size of a float variable.

0 Answers   Accenture,


Categories