
- Forum
- Programming Talk
- C and C++
- What is the difference
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?...
-
What is the difference
I want to know the differences between virtual functions and non-virtual C++ member function? Someone brief me on this?
-
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.

Reply With Quote





