Virtual Functions

  • + 1 comment

    No... the id is present in class constructor ... so, whenever the object is created then the "id" will be incremented... This way, "curid" can be assigned the value of "id" for any given object .....

    "curid" being an auto variable will be different for every object...