What is virtual Function.
Answer / poonam
Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.
| Is This Answer Correct ? | 7 Yes | 0 No |
what is the difference between class and structure in C++?
Why do pointers exist?
Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.
can you give real time example for polymarphism
What is the difference between pass by reference and pass by value?
How can you overcome the diamond problem in inheritance?
What is the difference between a constructor and a destructor?
Why do we use oop?
Why do we use inheritance?
What is nutshell in programming language?
1 Answers Satyam, Tech Mahindra,
what is multi level inheritance give n example ?
13 Answers HDFC, Hulas Steel, Ness Technologies,
what is difference between c++ language and java language