Redefining a virtual function in the derived class - C++ basic concepts

Q.  While redefining a virtual function in the derived class, if its prototype is changed then ___________________ .
- Published on 19 Jul 15

a. It will be overloaded by the compiler
b. Its virtual nature will be lost
c. both a and b
d. Compiler will generate “Prototype mismatch error”

ANSWER: both a and b
 

    Discussion

  • ramesh   -Posted on 08 Oct 15
    It will be overloaded by the compiler
    Its virtual nature will be lost

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