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 difference between c++ language and java language

5 Answers  


What are the OOPS concepts?

106 Answers   A1 Technology, Bajaj, CTS, EDS, HP, Infosys, Intel, Microsoft, MNC, Persistent, PlanetSoft, ProConstructor, TCS, Virtusa, Wipro, YSoft Solutions,


What do you mean by Encapsulation?

1 Answers   Ittiam Systems,


should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks

2 Answers  


Can java compiler skips any statement during compilation time?

0 Answers  


What is the significance of classes in oop?

1 Answers  


What is encapsulation in oop?

1 Answers  


Is enum a class?

1 Answers  


What is new keyword in oops?

1 Answers  


What is overloading in oop?

1 Answers  


what is abstract class ? when is used in real time ? give a exp

5 Answers  


What is the types of inheritance?

1 Answers  


Categories