Answer Posted / hrpynux@gmail.com
A virtual function is a member function that you expect to be redefined in derived classes. When you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for that object and execute the derived class's version of the function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program which uses functions like strcmp(), strcpy()? etc
What is a volatile variable in c++?
Can you please explain the difference between using macro and inline functions?
Can you please explain the difference between static and dynamic binding of functions?
What are the types of array in c++?
What is the difference between interpreters and compilers?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
What is fflush c++?
When can I use a forward declaration?
What is the full form of c++?
What is auto used for in c++?
How do you decide which integer type to use?
What is a flag in c++?
Write a Program to find the largest of 4 no using macros.
How to allocate memory dynamically for a reference?