what is virtual function?
Answer Posted / vindhyachal kumar gupta
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use inheritance?
What is the fundamental idea of oop?
What are different oops concepts?
What does <> mean pseudocode?
What is the point of oop?
Why it is called runtime polymorphism?
What is constructor in oop?
What is polymorphism and types?
How Do you Code Composition and Aggregation in C++ ?
which feature are not hold visual basic of oop?
What are the three parts of a simple empty class?
Why is abstraction needed?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Templates mean
Why do we use oops?