what is virtual function in c++

Answer Posted / sree

virtual function comes into picture while inheriting the
base class functions to the derived class functions.
ifthe virtual isnot used then the pointer of derived class
points to the baseclass function

Is This Answer Correct ?    28 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to get the oracle certification? send me the answer

1674


What are the three parts of a simple empty class?

1462


What is overloading in oop?

581


How to hide the base class functionality in Inheritance?

643


What are oops methods?

570






What is constructor in oop?

591


Plese get me a perfect C++ program for railway/airway reservation with all details.

3433


What is object in oop with example?

711


Is data hiding and abstraction same?

577


What is polymorphism explain its types?

692


What are the 4 main oop principles?

689


What does and I oop and sksksk mean?

661


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1645


Why is polymorphism needed?

605


What are the benefits of polymorphism?

628