i am a c++ beginner and i did not get the concept of virtual functions in polymorphism
i am not getting the following lines

virtual function has an important advantage over simple overloading
.if a particular member function is not defined for any derived class but is called through derived object using pointer to base class,the function defined in the base class is used.base class definition of a function forms a default definition for all derived class.any redefinition of the virtual function in a particular derived class causes the original definition to be replaced with the new one whenever the old one is used in that class

help greatly appreciated

5 Years
Discussion Span
Last Post by inspire_all
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.