Exforsys
+ Reply to Thread
Results 1 to 2 of 2

What is the difference

This is a discussion on What is the difference within the C and C++ forums, part of the Programming Talk category; I want to know the differences between virtual functions and non-virtual C++ member function? Someone brief me on this?...

  1. #1
    Adrian is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124

    Question What is the difference

    I want to know the differences between virtual functions and non-virtual C++ member function? Someone brief me on this?


  2. #2
    ashlee is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    108
    Virtual function is a mechanism to implement the concept of Polymorphism an ability to give different meanings to one function. The main difference between a non-virtual c++ member function and a virtual member function is the way both gets resolved. A non-virtual c++ member function gets resolved during compile time also called as static binding but in contrast Virtual Functions are resolved during run-time also called as dynamic binding.


Latest Article

Network Security Risk Assessment and Measurement

Read More...