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 is constructor overloading in oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is oops and its features?
How oops is better than procedural?
Why it is called runtime polymorphism?
What is a class oop?
Why polymorphism is used in oops?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is difference between inheritance and polymorphism?
What does it mean when someone says I oop?
Write a program to reverse a string using recursive function?
c++ program to swap the objects of two different classes
Why do while loop is used?
What does and I oop mean?
Whats is abstraction in oops?