What is virtual function?where and when is it used?

Answers were Sorted based on User's Feedback



What is virtual function?where and when is it used?..

Answer / reshma khan pathan

In object-oriented programming, a virtual function is a
function whose behavior can overridden by a function of
same signature of inherited class.

Is This Answer Correct ?    6 Yes 0 No

What is virtual function?where and when is it used?..

Answer / vijaya lakshmi

virtual memory used as a temporary memory.it mainly
used to store a another variable value.

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More OOPS Interview Questions

What is sub classing in c++?

1 Answers  


to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123

2 Answers  


write a c++ code of diagonal matrix.

2 Answers  


sir plz send me a set of questions that been frequently held in written examination during campus selection.

0 Answers   TCS,


What is the difference between a constructor and a destructor?

0 Answers  


Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


What is class and example?

0 Answers  


why c++ is called OOPS? waht is inherutance? what is compiler?

5 Answers  


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

0 Answers  


What is data binding in oops?

0 Answers  


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


what is the use of mutable key word

3 Answers   HCL,


Categories