The above note gives the information about the virtual functions.The program written is give more idea about the virtual functions.