Answer Posted / 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 |
Post New Answer View All Answers
Can a varargs method be overloaded?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Which method cannot be overridden?
What is abstraction in oop with example?
write knight tour problem which is present in datastructure
Get me an image implementation program.
What is coupling in oops?
What is polymorphism what is it for and how is it used?
How to call a non virtual function in the derived class by using base class pointer
What is polymorphism explain its types?
Explain the advantages of inheritance.
How to hide the base class functionality in Inheritance?
What is overloading in oop?
What are the data types in oop?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?