what is virtual function?

Answers were Sorted based on User's Feedback



what is virtual function?..

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

what is virtual function?..

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

what is virtual function?..

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

Post New Answer

More OOPS Interview Questions

what is SPL in c++.

1 Answers  


i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????

4 Answers  


Which language is pure oop?

0 Answers  


Why polymorphism is used in oops?

0 Answers  


What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 Answers  


What are the features of oop?

0 Answers  


Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?

2 Answers   NIIT,


What does sksksk mean in text slang?

0 Answers  


create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

2 Answers   CTS, Delhi University,


What are callback functions in c++

1 Answers   SoftTech,


What is the differances between a abstract calss and interface

5 Answers   Aviva, Symphony,


What is persistence in oop?

0 Answers  


Categories