what is virtual function?
Answers were Sorted based on User's Feedback
Answer / ravi
Virtual function is a member function of a class.whose
functionality can be overridden in is derived class.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / p.kumarasamy,be(cse)
C++ virtual function is a member function of a class, whose
functionality can be over-ridden in its derived classes. The
whole function body can be replaced with a new set of
implementation in the derived class. The concept of c++
virtual functions is different from C++ Function overloading.
C++ Virtual Function - Properties:
C++ virtual function is,
* A member function of a class
* Declared with virtual keyword
* Usually has a different functionality in the derived class
* A function call is resolved at run-time
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / brunda r
Virtual functions are the functions declared as normal
function call but preceeded by keyword 'virtual'.Its value is
equated to zero and its definition is incomplete or
blank.Virtual functions is dynamic polymorphism.
| Is This Answer Correct ? | 1 Yes | 2 No |
features of OOPS
22 Answers Ness Technologies, Satyam,
How to hide the base class functionality in Inheritance?
what is oops
What is nutshell in programming language?
1 Answers Satyam, Tech Mahindra,
What is Virtual Keyword?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
How to calculate the age from the date of birth by using the program?
What is the purpose of enum?
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile
what is mean by design pattern
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
what is the difference between <stdio.h>and "stdio.h"?