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
What is the difference between a constructor and a destructor?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is the difference between procedural programming and oops?
How do you define a class in oop?
Why do we need oop?
can we make game by using c
Can enum be null?
What is class and object with example?
What does and I oop and sksksk mean?
What is encapsulation and abstraction? How are they implemented in C++?
What is multilevel inheritance explain with example?
What polymorphism means?
What is the fundamental idea of oop?
What is debug class?what is trace class? What differences are between them? With examples.