Virtual Functions in C++


Virtual functions in c++ is ,if you want to execute the member function of derived class then, you can declare  a function  in the base class virtual which makes that function existing in appearance only but, you can’t call that function. In order to make a function virtual, you have to add keyword virtual in front of a function.