NortonLifeLock Interview Question: Example & usage of virtual ke... |

Interview Question

Software Engineer Intern Interview

Example & usage of virtual keyword in C/C++.


Interview Answer

2 Answers


In object-oriented programming, a virtual function or virtual method is a function or method whose behavior can be overridden within an inheriting class by a function with the same signature. This concept is an important part of the polymorphism portion of object-oriented programming (OOP).

Love Bisaria on 9 Apr 2014

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

Add Answers or Comments

To comment on this, Sign In or Sign Up.