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
What is an iterator class in c++?
Is c++ a programming language?
What is atoi?
Explain the difference between class and struct in c++?
How to give an alternate name to a namespace?
Explain function overloading and operator overloading.
Explain rtti.
Can recursive program be written in C++?
Can c++ be faster than c?
What is an iterator?
What is difference between c++ 11 and c++ 14?
Explain what is class definition in c++ ?
What would happen on forgetting [], while deallocating an array through new?
What is the default width for ouputting a long integer using the insertion operator?
What will happen if a pointer is deleted twice?