Virtual Functions

  • + 1 comment

    Firstly virtual function only declear in side the person class and define his deraived class.and you can't define the virtual function in side the person class.only you can declear. And we are refering getdata() to his person class.

    I hope you understand.