Difference between Virtual and Overridding functions in C++

cpp , virtual function , overridding India
  • 11 years ago

    The function Overridded with virtual function does the same operation as of function Overridded without virtual function. Then why we use the Virtual Keyword? What is the advantage/change by using virtual keyword before base class function in C++?

  • 8 years ago

    virtual function : Depends on runtime type information appropriate function is called. function overriding : base class functions are overrided by derived class functions. for C++ tutorial refer http://www.cppbasics.com

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” - Dennis Ritchie