what is virtual function?

Answers were Sorted based on User's Feedback



what is virtual function?..

Answer / bhupendra singh

virtual function can be used to override the propertis of a
function.it is part of polymerphism.it is normaly used in inheritance.

Is This Answer Correct ?    0 Yes 0 No

what is virtual function?..

Answer / prashant kalmodiya

VIRTUAL FUNCTION ensures that correct function get called
at runtime

Is This Answer Correct ?    3 Yes 4 No

what is virtual function?..

Answer / sandeep kumar

a virtual function is a member function that you expect to be redefined in derived class when you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for the object and executes the derived class version of the function

Is This Answer Correct ?    0 Yes 1 No

what is virtual function?..

Answer / susanta samal

virtual function is used to prevent from more times
calling.That means if a function is declared as virtual
then its def will be diferent in base class & derived class

Is This Answer Correct ?    4 Yes 7 No

what is virtual function?..

Answer / ori

(this answer is more - a "use of virtual function")
One Important use of virtual function is - Aggregation of
object related to derivation class hirarcy, in to an other
class , by defining a pointer to the base class (of
hirarchy) as one of the member objects of the other class.

Is This Answer Correct ?    2 Yes 5 No

what is virtual function?..

Answer / varsha vilas kalebag

virtual function is ended with null

virtual function=o

Is This Answer Correct ?    26 Yes 132 No

Post New Answer

More OOPS Interview Questions

Why is encapsulation used?

0 Answers  


How is data security provided in Object Oriented languages? ?

5 Answers  


What is abstract class in oop?

0 Answers  


When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,


tel me oops defination in single line

2 Answers  






What is abstraction and encapsulation?

0 Answers  


What is class in oop with example?

0 Answers  


What is the Advantage of Interface over the Inheritance in OOPS?

4 Answers  


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


What does no cap mean?

0 Answers  


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


explain the concepts of oops?

1 Answers  


Categories