+ 3
What is the use of virtual function?
advantage and uses of virtual function
8 Réponses
+ 14
C++?
+ 7
+ 7
Adding resources to code....
+ 6
@nandakumar
- name is too long
- not typing it again
Do you understand classes and functions well?
If you do not, the answer will not help you.
+ 5
In which language?
+ 1
in c++
+ 1
what is the use of virtual function in c++?
0
At least in C#, it's used when you want to inherate a function with different implementation. For example, the superclass will have the virtual function, while the subclasses will have the same function but instead of "virtual" they will have "override". That way it's gonna be the same method with different implementation on every subclass