saving . . . saved Virtual Keyword has been deleted. Virtual Keyword has been hidden .
Virtual Keyword
Title
Question
What is the meaning of the keyword Virtual that is used with operation function?

Advanced-Cpp Function-Overloading-And-Overriding 03-04 min 20-30 sec 13-04-20, 1:18 p.m. Mann_19

Answers:

Dear Mann_19,

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: &quot;helvetica neue&quot;, 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>
04-05-21, 4:16 p.m. saravana_7528

Login to add comment


Log-in to answer to this question.