Virtual Functions

  • + 1 comment

    why can't we directly declare cur_id as static and increment the same in the constructor ,why do we need another variable id for the purpose?