What are virtual functions and what is its use?



What are virtual functions and what is its use?..

Answer / 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

More C++ General Interview Questions

What operator is used to access a struct through a pointer a) >> b) -> c) *

0 Answers  


plz send me National informatics center paper pattern

1 Answers  


What is abstraction c++?

0 Answers  


i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????

1 Answers  


what is Loop function? What are different types of Loops?

0 Answers  






What are c++ tokens?

0 Answers  


What is the history of c++?

0 Answers  


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

0 Answers  


Show the declaration for a static function pointer.

0 Answers  


What are the various storage classes in C++?

0 Answers   Fidelity,


Is c++ an oop?

0 Answers  


What are advantages and disadvantages of Design patterns?

7 Answers   IBM, Vodafone,


Categories