RunTime Polymorphism is achieved - Virtual function

Q.  C++: RunTime Polymorphism is achieved by ______
- Published on 24 Jun 15

a. Friend function
b. Virtual function
c. Operator overloading
d. Function overloading

ANSWER: Virtual function
 
Virtual functions helps to call member functions of different class by a same function call depending on the context.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)