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

design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }

1 Answers   HSBC,


When you define a integer it gets stored in which data structure?(Stack or a heap)

2 Answers   emc2,


What is destructor in oop?

0 Answers  


Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,


What is difference between abstraction and encapsulation?

0 Answers  






i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


Can you explain polymorphism?

0 Answers  


What are the advantanges of modularity

2 Answers  


how to swap to variables without using thrid variable in java?

5 Answers  


What is multilevel inheritance explain with example?

0 Answers  


what is the difference between virtual function and destoctor?

1 Answers  


what is difference between c++ language and java language

5 Answers  


Categories