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
What are properties in oop?
Why is destructor used?
What are classes oop?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is difference between polymorphism and inheritance?
Why is polymorphism used?
What are the benefits of interface?
What is abstraction in oops?
What is polymorphism and types?
Which method cannot be overridden?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is super in oop?
What is the advantage of oop over procedural language?
Is html an oop?
What are the benefits of oop?