Run time polymorphism can be achieved with Virtual function

Q.  Run time polymorphism can be achieved with______ .
- Published on 17 Jul 15

a. Virtual Base class
b. Container class
c. Virtual function
d. Both a and c

ANSWER: Virtual function
 

    Discussion

  • Raj   -Posted on 23 Oct 15
    Run time polymorphism can be achieved with virtual function. To create virtual function, precede the function’s declaration in the base class with the keyword virtual.

➨ 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.)
▲