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 a static member?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
What is virtual destructor? What is its use?
What is cout flush?
What new()is different from malloc()?
What is an iterator?
What is encapsulation in c++ with example?
Define copy constructor.
Define the process of handling in case of destructor failure?
Differentiate between the manipulator and setf( ) function?
What is an accessor in c++?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What happens when the extern "c" char func (char*,waste) executes?
How can I improve my c++ skills?
What is the meaning of c++?