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 default access level?
List the types of polymorphism in c++?
How do you clear a buffer in c++?
Is c++ map a hash table?
Array base access faster or pointer base access is faster?
When is the destructor called?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What is flush () in c++?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is the difference between while and do while loop? Explain with examples.
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What are the advantages of inheritance in c++?
what do you mean by volatile variable?
What is the real purpose of class – to export data?