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

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

0 Answers   Adobe,


What is the difference between malloc, calloc and realloc?

0 Answers   Alter,


Tell me about virtual function

1 Answers  


Write a syntax and purpose of switch statement.

0 Answers   Agilent,


What Are The Differences Between A C++ Struct And C++ Class?

2 Answers   Wipro,






Without using third variable write a code to swap two numbers.

0 Answers   Accenture,


What are Agilent PRECOMPILERS?

0 Answers   Agilent,


Explain what happens when an exception is thrown in C++.

0 Answers   Amazon,


What is a COPY CONSTRUCTOR and when is it called?

0 Answers   IBS,


What does it mean to declare a function or variable as static?

0 Answers   Amazon,


Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.

0 Answers   Alter,


Can we provide one default constructor for our class?

0 Answers  


Categories