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 the array and initializing arrays in c++?
Why is "using namespace std;" considered bad practice?
what are function pointers?
Is java made in c++?
What is the benefit of c++?
How do you find out if a linked-list has an end?
What is meant by iomanip in c++?
Can you overload the operator+ for short integers?
What is the difference between set and map in c++?
What programming language should I learn first?
Define upcasting.
What are the types of container classes?
What is static in c++?
What is the difference between the parameter to a template and the parameter to a function?
Name the implicit member functions of a class.