Virtual functions are functions declared with a virtual keyword in the base class. Concrete derived classes override virtual functions from the base class by implementing the virtual function in the derived case. The resolution of a specific function call is done at run-time.
nags
29-04-20, 12:26 p.m.nags
<ul style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; list-style: outside none; color: rgb(0, 0, 0); font-family: "helvetica neue", helvetica, arial, sans-serif; font-size: 16px;"><li class="va-top ov-h" style="margin: 0px 0px 4px; padding: 0px; vertical-align: top; overflow: hidden; zoom: 1;">Virtual Keyword is used to make a member function of the base class Virtual. In Late Binding function call is resolved at runtime. Hence, now compiler determines the type of object at runtime, and then binds the function call. Late Binding is also called Dynamic Binding or Runtime Binding.</li></ul>
Login to add comment