what is virtual function?
Answer Posted / 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 |
Post New Answer View All Answers
What is the purpose of enum?
What does and I oop mean?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Why is static class not inherited?
What is inheritance in simple words?
What is encapsulation in oops?
What is pointer in oop?
What is for loop and its syntax?
What is abstraction oop?
How do you define social class?
What is the importance of oop?
Can bst contain duplicates?
Is abstract thinking intelligence?
What is overloading in oops?
Can private class be inherited?