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

when my application exe is running nad i don't want to create another exe what should i do

2 Answers   HCL,


What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?

4 Answers   Accenture, L&T,


difine hierarchical inheritance.

9 Answers   ASD Lab, TCS,


How can you overcome the diamond problem in inheritance?

0 Answers   NIIT,


Why do we use virtual functions?

4 Answers  






What are the benefits of oop?

0 Answers  


is java purely oop Language?

49 Answers   HCL, Infosys, TCS,


Program to open a file with First argument

1 Answers   TCS,


What is encapsulation in ict?

0 Answers  


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

0 Answers   SRA,


what is function overloading..?

4 Answers  


advantage and disadvantage in c++>>oops and what are the questions ask for interview in c++>>oops. could you tell me or reply me

0 Answers  


Categories