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 is static variable and difference between(const char *p,char const *p,const char* const p).

0 Answers   Accenture,


What is the 4 difference between delete[] and delete?

0 Answers   Alter,


What are string library functions(syntax).

0 Answers   Accenture,


What Is Polymorphism in C++ ?

1 Answers   IBS, Impetus, ITC Indian Tobacco Company, Motorola,


Write a syntax and purpose of switch statement.

0 Answers   Agilent,






What is Copy Constructor?

5 Answers   ABC, Siemens,


Write a program that ask for user input from 5 to 9 then calculate the average

0 Answers   IBS,


Name the operators that cannot be overloaded.

1 Answers   Wipro,


What is the difference between public, private, and protected inheritance?

0 Answers   Amazon,


Factory Method C++ – How to delete pointers returned by it

0 Answers  


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

0 Answers   Amazon,


Find the Factorial of a number using a program.

0 Answers   Accenture,


Categories