C++
Programming and Technical
wat is the use of virtual keyword
Read Solution (Total 5)
-
- virtual keyword is used for two purposes
1) to have multiple inheritance in c++
2)for late binding - 12 years agoHelpfull: Yes(3) No(1)
- This is not maths puzzle. Ok. Anyhow,
Virtual keyword will be used to have a different functionality in the derived class. - 12 years agoHelpfull: Yes(2) No(2)
- virtual keyword used as virtual function specifier and virtual base class specifier
- 9 years agoHelpfull: Yes(0) No(0)
- To achieve the Late binding.
- 8 years agoHelpfull: Yes(0) No(0)
- Virtual Functions are used to support Run time Polymorphism. ... When the virtual function is called by using a Base Class Pointer, the Compiler decides at Runtime which version of the function i.e. Base Class version or the overridden Derived Class version is to be called. This is called Run time Polymorphism.
- 7 years agoHelpfull: Yes(0) No(0)
C++ Other Question