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 cast operator?

2 Answers   Microsoft,


WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.

7 Answers   ETH,


What is multiple inheritance?

9 Answers   TCS,


What language is oop?

0 Answers  


Can you name some types of inheritance?

3 Answers   Motorola,






What is destructor oops?

0 Answers  


Which language is not a true object oriented programming language?

0 Answers  


WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.

4 Answers   HCL,


What is class and example?

0 Answers  


What is this interview room ? Is it a class or an object.

3 Answers   CybAge, NSN, Wipro,


What are the advantages of inheritance?

26 Answers   IBS, TCS,


What is stream in oop?

0 Answers  


Categories